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:
Johannes Hackel 2024-05-16 16:33:32 +02:00 committed by GitHub
parent eba8744a70
commit 1efa578ffb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -306,7 +306,7 @@ fn apply_pbr_lighting(
transmissive_lighting_input.V = -in.V; transmissive_lighting_input.V = -in.V;
transmissive_lighting_input.diffuse_color = diffuse_transmissive_color; transmissive_lighting_input.diffuse_color = diffuse_transmissive_color;
transmissive_lighting_input.F0_ = vec3(0.0); 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 #ifdef STANDARD_MATERIAL_CLEARCOAT
transmissive_lighting_input.layers[LAYER_CLEARCOAT].NdotV = 0.0; transmissive_lighting_input.layers[LAYER_CLEARCOAT].NdotV = 0.0;
transmissive_lighting_input.layers[LAYER_CLEARCOAT].N = vec3(0.0); transmissive_lighting_input.layers[LAYER_CLEARCOAT].N = vec3(0.0);