Commit 01d7e72
committed
Fix wrong coordinate system used for fog
The fogQuake3 shader used the model coordinate system for some
calculations, which is not right since it may be scaled (entities using
nonNormalizedAxes). Do calculations in world space instead.
In Unvanquished I believe this only affects some player models. Models
that use IQM skeleton scaling are not affected.1 parent 59ebf7b commit 01d7e72
File tree
3 files changed
+14
-29
lines changed- src/engine/renderer
- glsl_source
3 files changed
+14
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1091 | 1091 | | |
1092 | 1092 | | |
1093 | 1093 | | |
1094 | | - | |
1095 | | - | |
1096 | | - | |
1097 | | - | |
1098 | | - | |
1099 | | - | |
| 1094 | + | |
| 1095 | + | |
1100 | 1096 | | |
1101 | 1097 | | |
1102 | 1098 | | |
| |||
1106 | 1102 | | |
1107 | 1103 | | |
1108 | 1104 | | |
1109 | | - | |
1110 | | - | |
1111 | | - | |
1112 | | - | |
1113 | | - | |
1114 | | - | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
1115 | 1108 | | |
1116 | 1109 | | |
1117 | 1110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
| 37 | + | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | 41 | | |
44 | 42 | | |
45 | 43 | | |
| |||
74 | 72 | | |
75 | 73 | | |
76 | 74 | | |
77 | | - | |
| 75 | + | |
| 76 | + | |
78 | 77 | | |
79 | 78 | | |
80 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1597 | 1597 | | |
1598 | 1598 | | |
1599 | 1599 | | |
1600 | | - | |
1601 | | - | |
1602 | | - | |
1603 | | - | |
1604 | | - | |
1605 | | - | |
| 1600 | + | |
| 1601 | + | |
1606 | 1602 | | |
1607 | 1603 | | |
1608 | 1604 | | |
| |||
1613 | 1609 | | |
1614 | 1610 | | |
1615 | 1611 | | |
1616 | | - | |
1617 | | - | |
1618 | | - | |
1619 | | - | |
1620 | | - | |
1621 | | - | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
1622 | 1615 | | |
1623 | 1616 | | |
1624 | 1617 | | |
| |||
0 commit comments