1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Fix reflection probe dark borders

This commit is contained in:
landervr
2025-04-29 12:57:59 +02:00
parent ce94b26de7
commit e3dbf74634
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) {