forked from bevyengine/bevy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add globals struct to mesh2d (bevyengine#6222)
See commit message. I noticed I couldn't use `globals.time` when using `Material2d`. I copied the solution from 8073362 , and now `Material2d` works for me. Perhaps some of these struct definitions could be shared in the future, but for now I've just copy pasted it (it looked like the `View` struct was done that way). Ping @IceSentry , I saw a comment on the linked commit that you intended to do this work at some point in the future.
- Loading branch information
1 parent
a43c020
commit 750e150
Showing
3 changed files
with
40 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,6 @@ | |
|
||
@group(0) @binding(0) | ||
var<uniform> view: View; | ||
|
||
@group(0) @binding(1) | ||
var<uniform> globals: Globals; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters