Commit 4022da41 authored by NiranV's avatar NiranV

Fixed: Screen Space Reflections making basic shiny slightly brighter.

parent 4eb96d09
......@@ -141,8 +141,6 @@ void main()
float fullbrightification = diffuse.a;
// the old infinite-sky shiny reflection
float sa = dot(refnormpersp, light_dir.xyz);
float light_gamma = 1.0/1.3;
sa = pow(sa, light_gamma);
vec3 dumbshiny = (sunlit)*(scol * 0.25)*(0.5 * texture2D(lightFunc, vec2(sa, spec.a)).r);
dumbshiny = min(dumbshiny, vec3(1));
......
......@@ -169,8 +169,6 @@ void main()
float fullbrightification = diffuse.a;
// the old infinite-sky shiny reflection
float sa = dot(refnormpersp, light_dir.xyz);
float light_gamma = 1.0/1.3;
sa = pow(sa, light_gamma);
// screen-space cheapish fakey reflection map
vec3 refnorm = normalize(reflect(vec3(0,0,-1), norm.xyz));
......
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