Skip to content

Commit

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

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

## Solution

- Add them back
  • Loading branch information
DGriffin91 authored and Ray Redondo committed Jan 9, 2024
1 parent 69ee510 commit b400116
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 b400116

Please sign in to comment.