Verified Commit 322c7359 authored by insert's avatar insert

Fix 3.

parent 88a96f50
......@@ -32,7 +32,7 @@ float point_shadow(int i) {
PointLight light = pointLights[i];
vec3 fragToLight = fPos - light.position;
float closestDepth = texture(light.shadowMap, fragToLight).r;
float closestDepth = texture(pointShadowMap[i], fragToLight).r;
closestDepth *= far_plane;
float currentDepth = length(fragToLight);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment