From 67d823555c17c4ea3d31832c72e375b03cffa859 Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Mon, 14 Oct 2019 20:14:49 -0400 Subject: [PATCH] Color with anchor --- cMaterial.java | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cMaterial.java b/cMaterial.java index aa1c881..5691d47 100644 --- a/cMaterial.java +++ b/cMaterial.java @@ -80,9 +80,9 @@ void UpdateMaterial(cMaterial anchor, cMaterial current, boolean colorparallax) { - //color *= Factor(anchor.color, current.color); - if (colorparallax) - color = current.color; + color *= Factor(anchor.color, current.color); + //if (colorparallax) + // color = current.color; //if (anchor.saturation == 0) // anchor.saturation = 0.001f; if (anchor.modulation == 0) @@ -110,7 +110,7 @@ // if (anchor.parallax == 0) // anchor.parallax = 0.001f; //parallax *= Factor(anchor.parallax, current.parallax); - if (colorparallax) + //if (colorparallax) parallax = current.parallax; fakedepth *= Factor(anchor.fakedepth, current.fakedepth); shadowbias *= Factor(anchor.shadowbias, current.shadowbias); -- Gitblit v1.6.2