bevy-shaders
Installation
SKILL.md
Bevy shaders and materials
When to use
Load this when a surface needs a custom material or a full-screen effect. StandardMaterial field lists stay on bevy-3d-materials. Shader source is WGSL loaded as an asset.
ECS shape
- Shader asset:
AssetServerloads aShaderfrom a path.ShaderRef::Handleor a path string points a material at that asset. - Material: implement
Material, deriveAsBindGroup, and registerMaterialPlugin::<T>. The engine extracts materials. Do not schedule a shader compiler. - Full-screen:
Bloomis a camera component frombevy::post_process. It requires an HDR camera, which the component requests itself.
Examples
[dependencies]
bevy = "0.20"