SL-17929: PBR: Fix sun reflection artifacts from lightFunc being noisy

meow-7.2.2
Ptolemy 2022-08-11 16:19:08 -07:00
parent 8abc2ad094
commit bc31d4f204
1 changed files with 1 additions and 1 deletions

View File

@ -326,7 +326,7 @@ void main()
float sa = dot(normalize(r), light_dir.xyz);
float sun = texture2D(lightFunc, vec2(sa, metal)).r;
vec3 sunSpec = sunlit * scol * sun;
colorSpec += sunSpec;
colorSpec += sunSpec * metal;
bloom = dot(sunSpec, sunSpec) / 6;
}
color.rgb = colorDiffuse + colorEmissive + colorSpec;