From 39bde66bb061a6e9cd3e268868333e981987f833 Mon Sep 17 00:00:00 2001 From: JMS55 <47158642+JMS55@users.noreply.github.com> Date: Sat, 1 Aug 2026 21:30:20 -0400 Subject: [PATCH] Properly layer emission under clearcoat --- crates/bevy_pbr/src/render/pbr_functions.wgsl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/bevy_pbr/src/render/pbr_functions.wgsl b/crates/bevy_pbr/src/render/pbr_functions.wgsl index 089e078ec4a26..cb43c93263c2e 100644 --- a/crates/bevy_pbr/src/render/pbr_functions.wgsl +++ b/crates/bevy_pbr/src/render/pbr_functions.wgsl @@ -845,7 +845,8 @@ fn apply_pbr_lighting( // // #ifdef STANDARD_MATERIAL_CLEARCOAT - emissive_light = emissive_light * (0.04 + (1.0 - 0.04) * pow(1.0 - clearcoat_NdotV, 5.0)); + let clearcoat_fresnel = lighting::F_Schlick(0.04, 1.0, clearcoat_NdotV); + emissive_light = emissive_light * (1.0 - clearcoat * clearcoat_fresnel); #endif emissive_light = emissive_light * mix(1.0, view_bindings::view.exposure, emissive.a);