Skip to content
Snippets Groups Projects
Commit 508ca2d4 authored by Graham Linden's avatar Graham Linden
Browse files

SL-10959

Scale down of bloom was off by a factor of 3 or so.
parent 37a7c96f
No related branches found
No related tags found
No related merge requests found
......@@ -152,7 +152,7 @@ vec3 post_diffuse = col.rgb;
float scol = fres*texture2D(lightFunc, vec2(nh, spec.a)).r*gt/(nh*da);
vec3 speccol = sun_contrib*scol*spec.rgb;
speccol = clamp(speccol, vec3(0), vec3(1));
bloom = dot(speccol, speccol) / 2;
bloom = dot(speccol, speccol) / 6;
col += speccol;
}
}
......
......@@ -166,7 +166,7 @@ vec3 post_diffuse = col.rgb;
float scontrib = fres*texture2D(lightFunc, vec2(nh, spec.a)).r*gt/(nh*da);
vec3 speccol = sun_contrib*scontrib*spec.rgb;
speccol = clamp(speccol, vec3(0), vec3(1));
bloom += dot (speccol, speccol) / 2;
bloom += dot (speccol, speccol) / 6;
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