From b276c9e3df20f40cfb9465a2cf6f4c2fb5302932 Mon Sep 17 00:00:00 2001 From: Arkitu <85173315+Arkitu@users.noreply.github.com> Date: Fri, 18 Jul 2025 21:41:48 +0200 Subject: [PATCH] fix interpolation for pbr --- crates/bevy_pbr/src/pbr_material.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/bevy_pbr/src/pbr_material.rs b/crates/bevy_pbr/src/pbr_material.rs index 37f91f089c..3029c8ead9 100644 --- a/crates/bevy_pbr/src/pbr_material.rs +++ b/crates/bevy_pbr/src/pbr_material.rs @@ -1534,6 +1534,7 @@ impl Material for StandardMaterial { ] { if key.bind_group_data.intersects(flags) { shader_defs.push(shader_def.into()); + descriptor.vertex.shader_defs.push(shader_def.into()); } } } @@ -1556,6 +1557,9 @@ impl Material for StandardMaterial { depth_stencil.bias.constant = (key.bind_group_data.bits() >> STANDARD_MATERIAL_KEY_DEPTH_BIAS_SHIFT) as i32; } + + dbg!(&descriptor); + Ok(()) } }