You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Fix reflection probe dark borders
This commit is contained in:
@@ -1949,11 +1949,11 @@ void fragment_shader(in SceneData scene_data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ambient_accum.a < 1.0) {
|
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) {
|
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) {
|
if (reflection_accum.a > 0.0) {
|
||||||
|
|||||||
@@ -1418,11 +1418,11 @@ void main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ambient_accum.a < 1.0) {
|
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) {
|
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) {
|
if (reflection_accum.a > 0.0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user