`ui_material` example should show how to use `Globals`
Open
A-Rendering
C-Docs
C-Examples
D-Straightforward
S-Ready-For-Implementation
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 161
Description
## How can Bevy's documentation be improved?
It's easy for a user to get tripped up by using the wrong globals import, e.g. from `bevy_pbr`. We don't seem to show the correct import anywhere in our docs or examples.
Something like
```c
#import bevy_render::globals::Globals
@group(0) @binding(1) var globals: Globals;
// globals.time
```
Seems to work, but I'm not 100% sure if this is the canonical way to do it.
Contributor guide
Assessment
This issue has not been assessed yet.