Fixed some peter planning

This commit is contained in:
jsrobson10 2020-10-20 11:25:38 +11:00
parent 8489503192
commit 01a86a5a1e
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ void main()
vec2 sunDepthTexPos = pSunDepth.xy * 0.5 + 0.5; vec2 sunDepthTexPos = pSunDepth.xy * 0.5 + 0.5;
vec3 light_day = max(vec3(0), pSunDepth.z < (texture(depthmap, sunDepthTexPos).r * 2 - 1 + 0.001 vec3 light_day = max(vec3(0), pSunDepth.z < (texture(depthmap, sunDepthTexPos).r * 2 - 1 + 0.0001
) ? lighting_day_high : lighting_day_low); ) ? lighting_day_high : lighting_day_low);
float light_src = scaleLight(max(0, light.r)) - abs(pLightMapPos.y) * 0.1; float light_src = scaleLight(max(0, light.r)) - abs(pLightMapPos.y) * 0.1;
vec4 rgb = vec4((pRGB % 64) / 64.0, ((pRGB >> 6) % 64) / 64.0, ((pRGB >> 12) % 64) / 64.0, 1); vec4 rgb = vec4((pRGB % 64) / 64.0, ((pRGB >> 6) % 64) / 64.0, ((pRGB >> 12) % 64) / 64.0, 1);