From dd2e0c6eaf6ef7325a9870802e3426cd32bf06af Mon Sep 17 00:00:00 2001 From: scrawl Date: Tue, 22 Mar 2016 19:32:17 +0100 Subject: [PATCH] Fix terrain parallax mapping --- files/materials/terrain.shader | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/materials/terrain.shader b/files/materials/terrain.shader index f20fce506..101320d30 100644 --- a/files/materials/terrain.shader +++ b/files/materials/terrain.shader @@ -384,7 +384,7 @@ float2 blendUV = (UV - 0.5) * (16.0 / (16.0+1.0)) + 0.5; thisLayerUV += TSeyeDir.xy * ( normalTex.a * PARALLAX_SCALE + PARALLAX_BIAS ); #endif - diffuseTex = shSample(diffuseMap@shIterator, layerUV); + diffuseTex = shSample(diffuseMap@shIterator, thisLayerUV); #if !@shPropertyBool(use_specular_@shIterator) diffuseTex.a = 0.0; #endif