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

Restore lost bloom on alpha blended materials...oops.

parent 1545164b
No related branches found
No related tags found
No related merge requests found
...@@ -160,6 +160,11 @@ vec3 calcPointLightOrSpotLight(vec3 light_col, vec3 npos, vec3 diffuse, vec4 spe ...@@ -160,6 +160,11 @@ vec3 calcPointLightOrSpotLight(vec3 light_col, vec3 npos, vec3 diffuse, vec4 spe
vec3 speccol = lit*scol*light_col.rgb*spec.rgb; vec3 speccol = lit*scol*light_col.rgb*spec.rgb;
speccol = clamp(speccol, vec3(0), vec3(1)); speccol = clamp(speccol, vec3(0), vec3(1));
col += speccol; col += speccol;
float cur_glare = max(speccol.r, speccol.g);
cur_glare = max(cur_glare, speccol.b);
glare = max(glare, speccol.r);
glare += max(cur_glare, 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