bevyengine / bevyengine/bevy

`ui_material` example should show how to use `Globals`

Open
#16,829 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.