.. | .. |
---|
80 | 80 | |
---|
81 | 81 | void UpdateMaterial(cMaterial anchor, cMaterial current, boolean colorparallax) |
---|
82 | 82 | { |
---|
83 | | - //color *= Factor(anchor.color, current.color); |
---|
84 | | - if (colorparallax) |
---|
85 | | - color = current.color; |
---|
| 83 | + color *= Factor(anchor.color, current.color); |
---|
| 84 | + //if (colorparallax) |
---|
| 85 | + // color = current.color; |
---|
86 | 86 | //if (anchor.saturation == 0) |
---|
87 | 87 | // anchor.saturation = 0.001f; |
---|
88 | 88 | if (anchor.modulation == 0) |
---|
.. | .. |
---|
110 | 110 | // if (anchor.parallax == 0) |
---|
111 | 111 | // anchor.parallax = 0.001f; |
---|
112 | 112 | //parallax *= Factor(anchor.parallax, current.parallax); |
---|
113 | | - if (colorparallax) |
---|
| 113 | + //if (colorparallax) |
---|
114 | 114 | parallax = current.parallax; |
---|
115 | 115 | fakedepth *= Factor(anchor.fakedepth, current.fakedepth); |
---|
116 | 116 | shadowbias *= Factor(anchor.shadowbias, current.shadowbias); |
---|