Commit 9803886
committed
Use colorModulateColorGen instead of disabling vertex color
Originally, vertex color array was disabled if colorGen CGEN_VERTEX or CGEN_ONE_MINUS_VERTEX or alphaGen CGEN_VERTEX or CGEN_ONE_MINUS_VERTEX were used,
resulting in the shader receiving the default OpenGL values for the disabled arrays (0.0, 0.0, 0.0, 1.0).
Now it will instead be set via setting a bit in `u_ColorModulateColorGen`, which allows skipping the vertex format change. It will also be necessary for the geometry cache.1 parent 5ba3796 commit 9803886
File tree
6 files changed
+23
-36
lines changed- src/engine/renderer
- glsl_source
6 files changed
+23
-36
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1087 | 1087 | | |
1088 | 1088 | | |
1089 | 1089 | | |
1090 | | - | |
1091 | | - | |
1092 | | - | |
1093 | | - | |
1094 | | - | |
1095 | | - | |
1096 | 1090 | | |
1097 | 1091 | | |
1098 | 1092 | | |
| |||
1118 | 1112 | | |
1119 | 1113 | | |
1120 | 1114 | | |
1121 | | - | |
1122 | | - | |
1123 | | - | |
1124 | | - | |
1125 | | - | |
1126 | | - | |
1127 | | - | |
1128 | | - | |
1129 | 1115 | | |
1130 | 1116 | | |
1131 | 1117 | | |
| |||
2150 | 2136 | | |
2151 | 2137 | | |
2152 | 2138 | | |
2153 | | - | |
2154 | | - | |
2155 | | - | |
2156 | | - | |
2157 | | - | |
2158 | | - | |
2159 | 2139 | | |
2160 | 2140 | | |
2161 | 2141 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
113 | 111 | | |
114 | 112 | | |
115 | 113 | | |
| |||
128 | 126 | | |
129 | 127 | | |
130 | 128 | | |
131 | | - | |
132 | | - | |
| 129 | + | |
133 | 130 | | |
134 | 131 | | |
135 | 132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2252 | 2252 | | |
2253 | 2253 | | |
2254 | 2254 | | |
2255 | | - | |
| 2255 | + | |
2256 | 2256 | | |
2257 | 2257 | | |
2258 | 2258 | | |
| |||
2284 | 2284 | | |
2285 | 2285 | | |
2286 | 2286 | | |
2287 | | - | |
| 2287 | + | |
2288 | 2288 | | |
2289 | 2289 | | |
2290 | 2290 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3494 | 3494 | | |
3495 | 3495 | | |
3496 | 3496 | | |
3497 | | - | |
| 3497 | + | |
| 3498 | + | |
3498 | 3499 | | |
3499 | 3500 | | |
3500 | 3501 | | |
| |||
3524 | 3525 | | |
3525 | 3526 | | |
3526 | 3527 | | |
3527 | | - | |
| 3528 | + | |
3528 | 3529 | | |
3529 | 3530 | | |
3530 | 3531 | | |
| |||
3541 | 3542 | | |
3542 | 3543 | | |
3543 | 3544 | | |
3544 | | - | |
| 3545 | + | |
3545 | 3546 | | |
3546 | 3547 | | |
3547 | | - | |
| 3548 | + | |
3548 | 3549 | | |
3549 | 3550 | | |
3550 | 3551 | | |
| |||
3561 | 3562 | | |
3562 | 3563 | | |
3563 | 3564 | | |
3564 | | - | |
3565 | | - | |
3566 | | - | |
3567 | | - | |
| 3565 | + | |
| 3566 | + | |
| 3567 | + | |
| 3568 | + | |
| 3569 | + | |
| 3570 | + | |
3568 | 3571 | | |
3569 | 3572 | | |
3570 | 3573 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
68 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
69 | 75 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| |||
0 commit comments