mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
ssao use unlit_color instead of white (#10117)
# Objective #10105 changed the ssao input color from the material base color to white. i can't actually see a difference in the example but there should be one in some cases. ## Solution change it back.
This commit is contained in:
parent
4ae6a66481
commit
d9a0761eb2
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ fn fragment(
|
|||
#endif
|
||||
#ifdef SCREEN_SPACE_AMBIENT_OCCLUSION
|
||||
let ssao = textureLoad(screen_space_ambient_occlusion_texture, vec2<i32>(in.position.xy), 0i).r;
|
||||
let ssao_multibounce = gtao_multibounce(ssao, pbr_input.material.base_color.rgb);
|
||||
let ssao_multibounce = gtao_multibounce(ssao, unlit_color.rgb);
|
||||
occlusion = min(occlusion, ssao_multibounce);
|
||||
#endif
|
||||
pbr_input.occlusion = occlusion;
|
||||
|
|
Loading…
Reference in a new issue