Fix contact shadow GLSL compilation error (#2254)

This commit is contained in:
Ben Doherty
2020-03-18 10:05:58 -07:00
committed by GitHub
parent 73312bc6bb
commit 210234255c

View File

@@ -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;