treesummaryrefslogcommitdiff
path: root/shaders/vert_irradiance.glsl
diff options
context:
space:
mode:
authorPatrick2021-03-26 19:11:29 +0100
committerPatrick2021-03-26 19:11:29 +0100
commit36fb27a899045de24d71d55b06648abda7547268 (patch)
treec5adeba0a8d9da11ed36f93a638e9904c83aca5e /shaders/vert_irradiance.glsl
parenta0fdc6d882a1755d0b0607ba3d9bb55e7f8ac006 (diff)
downloadsubsurface_scattering-36fb27a899045de24d71d55b06648abda7547268.tar.gz
subsurface_scattering-36fb27a899045de24d71d55b06648abda7547268.zip
pre cleanup
Diffstat (limited to 'shaders/vert_irradiance.glsl')
-rw-r--r--shaders/vert_irradiance.glsl4
1 files changed, 2 insertions, 2 deletions
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;
}