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

More shader cleanup

parent ae9a5d28
Branches
Tags
2 merge requests!3Update to main branch,!2Rebase onto current main branch
...@@ -254,11 +254,7 @@ void main() ...@@ -254,11 +254,7 @@ void main()
sampleReflectionProbesLegacy(irradiance, glossenv, legacyenv, frag, pos.xyz, norm.xyz, 0.0, 0.0, true, amblit_linear); sampleReflectionProbesLegacy(irradiance, glossenv, legacyenv, frag, pos.xyz, norm.xyz, 0.0, 0.0, true, amblit_linear);
float da = dot(norm.xyz, light_dir.xyz); float final_da = clamp(dot(norm.xyz, light_dir.xyz), 0.0, 1.0);
da = clamp(da, -1.0, 1.0);
float final_da = da;
final_da = clamp(final_da, 0.0f, 1.0f);
vec4 color = vec4(0.0); vec4 color = vec4(0.0);
......
...@@ -346,8 +346,6 @@ void main() ...@@ -346,8 +346,6 @@ void main()
color.rgb += sun_contrib; color.rgb += sun_contrib;
color *= diffcol.rgb; color *= diffcol.rgb;
vec3 refnormpersp = reflect(pos.xyz, norm.xyz);
float glare = 0.0; float glare = 0.0;
if (glossiness > 0.0) if (glossiness > 0.0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment