Merge pull request #105899 from lander-vr/Fix-reflection-probe-dark-borders

Fix reflection probe dark borders
This commit is contained in:
Thaddeus Crews 2025-04-29 11:24:07 -05:00
commit 39160ae6f3
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
2 changed files with 4 additions and 4 deletions

View file

@ -1949,11 +1949,11 @@ void fragment_shader(in SceneData scene_data) {
}
if (ambient_accum.a < 1.0) {
ambient_accum.rgb = mix(ambient_light, ambient_accum.rgb, ambient_accum.a);
ambient_accum.rgb = ambient_light * (1.0 - ambient_accum.a) + ambient_accum.rgb;
}
if (reflection_accum.a < 1.0) {
reflection_accum.rgb = mix(specular_light, reflection_accum.rgb, reflection_accum.a);
reflection_accum.rgb = specular_light * (1.0 - reflection_accum.a) + reflection_accum.rgb;
}
if (reflection_accum.a > 0.0) {

View file

@ -1418,11 +1418,11 @@ void main() {
}
if (ambient_accum.a < 1.0) {
ambient_accum.rgb = mix(ambient_light, ambient_accum.rgb, ambient_accum.a);
ambient_accum.rgb = ambient_light * (1.0 - ambient_accum.a) + ambient_accum.rgb;
}
if (reflection_accum.a < 1.0) {
reflection_accum.rgb = mix(specular_light, reflection_accum.rgb, reflection_accum.a);
reflection_accum.rgb = specular_light * (1.0 - reflection_accum.a) + reflection_accum.rgb;
}
if (reflection_accum.a > 0.0) {