Normand Briere
2019-10-15 67d823555c17c4ea3d31832c72e375b03cffa859
Color with anchor
1 files modified
8 ■■■■ changed files
cMaterial.java 8 ●●●● patch | view | raw | blame | history
cMaterial.java
....@@ -80,9 +80,9 @@
8080
8181 void UpdateMaterial(cMaterial anchor, cMaterial current, boolean colorparallax)
8282 {
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;
8686 //if (anchor.saturation == 0)
8787 // anchor.saturation = 0.001f;
8888 if (anchor.modulation == 0)
....@@ -110,7 +110,7 @@
110110 // if (anchor.parallax == 0)
111111 // anchor.parallax = 0.001f;
112112 //parallax *= Factor(anchor.parallax, current.parallax);
113
- if (colorparallax)
113
+ //if (colorparallax)
114114 parallax = current.parallax;
115115 fakedepth *= Factor(anchor.fakedepth, current.fakedepth);
116116 shadowbias *= Factor(anchor.shadowbias, current.shadowbias);