From 36fb27a899045de24d71d55b06648abda7547268 Mon Sep 17 00:00:00 2001 From: Patrick Date: Fri, 26 Mar 2021 19:11:29 +0100 Subject: pre cleanup --- shaders/vert_irradiance.glsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shaders/vert_irradiance.glsl') diff --git a/shaders/vert_irradiance.glsl b/shaders/vert_irradiance.glsl index 25770f6..6b54180 100644 --- a/shaders/vert_irradiance.glsl +++ b/shaders/vert_irradiance.glsl @@ -69,9 +69,9 @@ void main() vec4 t = texture(shadowmapTexture, shadowmapCoords); //vec4 t = blur(shadowmapTexture, shadowmapCoords, vec2(screenWidth, screenHeight)); - BacksideIrradiance = t.r + t.g*10 + t.b*100; + BacksideIrradiance = t.r; //*100 + t.g + t.b/100; - vec3 lightDir = (vec3(0, 0, 0) - lightPos); + vec3 lightDir = normalize(FragPos - lightPos); Backside = (lightPos + (lightDir * BacksideIrradiance)); //Backside = texture(shadowmapTexture, shadowmapCoords).xyz*10; } -- cgit v1.2.3