Skip to content

Commit

Permalink
Fix unlit missing parameters (#10144)
Browse files Browse the repository at this point in the history
# Objective

- The refactoring in #10105
missed including the frag_coord and normal in pbr_input.

## Solution

- Add them back
  • Loading branch information
DGriffin91 authored Oct 16, 2023
1 parent a042924 commit 490699c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/bevy_pbr/src/render/pbr.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 490699c

Please sign in to comment.