bevyengine / bevyengine/bevy

Provide an example of a material shader that uses texture type of uint

Open
#16,558 1 comment 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 16h
Merged PRs (30d)
171

Description


## What solution would you like?

See this example:
https://github.com/bevyengine/bevy/blob/main/examples/shader/shader_material.rs

a similar example should be given but one where the texture is interpreted as TextureFormat::Rgba8Uint .

## Additional context
This would be helpful because i am very confused doing this migrating from 0.14 to 0.15 , seems to have changed ....

Contributor guide

Open the contributing guide

Research direction

Start with examples/shader/shader_material.rs, linked in the issue, and compare its texture setup with the requested TextureFormat::Rgba8Uint case. Provide a similar material shader example that demonstrates the uint texture interpretation, then verify that the example builds and runs.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
documentation, game-dev
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.