mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 15:14:50 +00:00
Fix transmission by setting the correct value for transmissive_lighting_input.F_ab (#13379)
# Objective - The clearcoat PR #13031 had a small typo which broke transmission - Fixes #13284 ## Solution - Set transmissive_lighting_input.F_ab to the correct value ![transmission_fix](https://github.com/bevyengine/bevy/assets/688816/92158117-de3a-4fa5-8af8-dcbd1d5eee04)
This commit is contained in:
parent
eba8744a70
commit
1efa578ffb
1 changed files with 1 additions and 1 deletions
|
@ -306,7 +306,7 @@ fn apply_pbr_lighting(
|
|||
transmissive_lighting_input.V = -in.V;
|
||||
transmissive_lighting_input.diffuse_color = diffuse_transmissive_color;
|
||||
transmissive_lighting_input.F0_ = vec3(0.0);
|
||||
transmissive_lighting_input.F_ab = vec2(0.0);
|
||||
transmissive_lighting_input.F_ab = vec2(0.1);
|
||||
#ifdef STANDARD_MATERIAL_CLEARCOAT
|
||||
transmissive_lighting_input.layers[LAYER_CLEARCOAT].NdotV = 0.0;
|
||||
transmissive_lighting_input.layers[LAYER_CLEARCOAT].N = vec3(0.0);
|
||||
|
|
Loading…
Reference in a new issue