Fixed some peter planning
This commit is contained in:
parent
8489503192
commit
01a86a5a1e
|
|
@ -79,7 +79,7 @@ void main()
|
|||
|
||||
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);
|
||||
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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue