SL-20440 Followup -- balance PBR point light with legacy point light

meow-7.2.2
RunitaiLinden 2023-10-11 15:55:12 -05:00
parent ede7b04f87
commit 0d47ea31e3
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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