Skip to content
Snippets Groups Projects
Commit a615dc04 authored by Geenz's avatar Geenz
Browse files

Bring back specular bloom.

--HG--
branch : BUG-226620
parent 0e9193d8
No related branches found
No related tags found
No related merge requests found
...@@ -141,6 +141,7 @@ void main() ...@@ -141,6 +141,7 @@ void main()
float scol = fres*texture2D(lightFunc, vec2(nh, spec.a)).r*gt/(nh*da); float scol = fres*texture2D(lightFunc, vec2(nh, spec.a)).r*gt/(nh*da);
vec3 speccol = sun_contrib*scol*spec.rgb; vec3 speccol = sun_contrib*scol*spec.rgb;
speccol = max(speccol, vec3(0)); speccol = max(speccol, vec3(0));
bloom = dot (speccol, speccol) / 2;
col += speccol; col += speccol;
} }
} }
......
...@@ -154,6 +154,7 @@ void main() ...@@ -154,6 +154,7 @@ void main()
float scontrib = fres*texture2D(lightFunc, vec2(nh, spec.a)).r*gt/(nh*da); float scontrib = fres*texture2D(lightFunc, vec2(nh, spec.a)).r*gt/(nh*da);
vec3 speccol = sun_contrib*scontrib*spec.rgb; vec3 speccol = sun_contrib*scontrib*spec.rgb;
speccol = max(speccol, vec3(0)); speccol = max(speccol, vec3(0));
bloom += dot (speccol, speccol) / 2;
col += speccol; col += speccol;
} }
} }
......
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