SL-20440 Followup -- balance PBR point light with legacy point light
parent
ede7b04f87
commit
0d47ea31e3
|
|
@ -114,7 +114,7 @@ void main()
|
|||
|
||||
float dist_atten = calcLegacyDistanceAttenuation(dist, falloff);
|
||||
|
||||
vec3 intensity = dist_atten * lightColor * 3.9;
|
||||
vec3 intensity = dist_atten * lightColor * 3.25;
|
||||
|
||||
final_color += intensity*pbrPunctual(diffuseColor, specularColor, perceptualRoughness, metallic, n.xyz, v, lv);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ void main()
|
|||
|
||||
vec3 specularColor = mix(f0, baseColor.rgb, metallic);
|
||||
|
||||
vec3 intensity = dist_atten * color * 3.9; // Legacy attenuation, magic number to balance with legacy materials
|
||||
vec3 intensity = dist_atten * color * 3.25; // Legacy attenuation, magic number to balance with legacy materials
|
||||
final_color += intensity*pbrPunctual(diffuseColor, specularColor, perceptualRoughness, metallic, n.xyz, v, normalize(lv));
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in New Issue