|
|
|
@ -29,7 +29,7 @@ float unshadowedLightRatio()
|
|
|
|
|
shadowing = min(shadow2DProj(shadowTexture@shadow_texture_unit_index, shadowSpaceCoords@shadow_texture_unit_index).r, shadowing);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
doneShadows = all(lessThan(shadowXYZ, vec3(0.95, 0.95, 1.0))) && all(greaterThan(shadowXYZ.xy, vec2(0.05, 0.05)));
|
|
|
|
|
doneShadows = all(lessThan(shadowXYZ, vec3(0.95, 0.95, 1.0))) && all(greaterThan(shadowXYZ, vec3(0.05, 0.05, 0.0)));
|
|
|
|
|
#if @perspectiveShadowMaps
|
|
|
|
|
doneShadows = doneShadows && all(lessThan(shadowRegionXYZ, vec3(1.0, 1.0, 1.0))) && all(greaterThan(shadowRegionXYZ.xy, vec2(-1.0, -1.0)));
|
|
|
|
|
#endif
|
|
|
|
@ -67,7 +67,7 @@ void applyShadowDebugOverlay()
|
|
|
|
|
else
|
|
|
|
|
gl_FragData[0].z += 0.1;
|
|
|
|
|
|
|
|
|
|
doneOverlay = all(lessThan(shadowXYZ, vec3(0.95, 0.95, 1.0))) && all(greaterThan(shadowXYZ.xy, vec2(0.05, 0.05)));
|
|
|
|
|
doneOverlay = all(lessThan(shadowXYZ, vec3(0.95, 0.95, 1.0))) && all(greaterThan(shadowXYZ, vec3(0.05, 0.05, 0.0)));
|
|
|
|
|
#if @perspectiveShadowMaps
|
|
|
|
|
doneOverlay = doneOverlay && all(lessThan(shadowRegionXYZ.xyz, vec3(1.0, 1.0, 1.0))) && all(greaterThan(shadowRegionXYZ.xy, vec2(-1.0, -1.0)));
|
|
|
|
|
#endif
|
|
|
|
|