mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
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
This commit is contained in:
parent
a042924a6e
commit
490699c311
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue