Skip to content
Snippets Groups Projects
Commit cc9cb651 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

More shader cleanup

parent ae9a5d28
No related branches found
No related tags found
No related merge requests found
......@@ -254,11 +254,7 @@ void main()
sampleReflectionProbesLegacy(irradiance, glossenv, legacyenv, frag, pos.xyz, norm.xyz, 0.0, 0.0, true, amblit_linear);
float da = dot(norm.xyz, light_dir.xyz);
da = clamp(da, -1.0, 1.0);
float final_da = da;
final_da = clamp(final_da, 0.0f, 1.0f);
float final_da = clamp(dot(norm.xyz, light_dir.xyz), 0.0, 1.0);
vec4 color = vec4(0.0);
......
......@@ -346,8 +346,6 @@ void main()
color.rgb += sun_contrib;
color *= diffcol.rgb;
vec3 refnormpersp = reflect(pos.xyz, norm.xyz);
float glare = 0.0;
if (glossiness > 0.0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment