From 210234255c8dfaa0aeb84a89b1ed65ba67662e4c Mon Sep 17 00:00:00 2001 From: Ben Doherty Date: Wed, 18 Mar 2020 10:05:58 -0700 Subject: [PATCH] Fix contact shadow GLSL compilation error (#2254) --- shaders/src/shadowing.fs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shaders/src/shadowing.fs b/shaders/src/shadowing.fs index ce64bb0505..3c8cda15cd 100644 --- a/shaders/src/shadowing.fs +++ b/shaders/src/shadowing.fs @@ -289,7 +289,7 @@ float screenSpaceContactShadow(vec3 lightDirection) { float t = dt * dither + dt; highp vec3 ray; - for (uint i = 0 ; i < kStepCount ; i++, t += dt) { + for (uint i = 0u ; i < kStepCount ; i++, t += dt) { ray = rayData.uvRayStart + rayData.uvRay * t; float z = textureLod(light_structure, uvToRenderTargetUV(ray.xy), 0.0).r; float dz = ray.z - z;