From 490699c3119f997cbe7f10be3f83885db242a84b Mon Sep 17 00:00:00 2001 From: Griffin <33357138+DGriffin91@users.noreply.github.com> Date: Mon, 16 Oct 2023 15:11:51 -0700 Subject: [PATCH] Fix unlit missing parameters (#10144) # Objective - The refactoring in https://github.com/bevyengine/bevy/pull/10105 missed including the frag_coord and normal in pbr_input. ## Solution - Add them back --- crates/bevy_pbr/src/render/pbr.wgsl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/bevy_pbr/src/render/pbr.wgsl b/crates/bevy_pbr/src/render/pbr.wgsl index 6b9113f11dd6f..77057f2755891 100644 --- a/crates/bevy_pbr/src/render/pbr.wgsl +++ b/crates/bevy_pbr/src/render/pbr.wgsl @@ -166,6 +166,8 @@ fn fragment( pbr_input.flags = mesh[in.instance_index].flags; pbr_input.material.flags = pbr_bindings::material.flags; pbr_input.world_position = in.world_position; + pbr_input.world_normal = in.world_normal; + pbr_input.frag_coord = in.position; #endif }