Back home 🏡 WGSL Spec Bevy WGSL Functions

shader_defs.wgsl

Bindings

Name Group Binding index Binding type Type
material # 2 0 <uniform> CustomMaterial

Structures

CustomMaterial

#
Name Type
color vec4<f32>

Functions

fragment

#
@fragment
fn fragment(mesh: VertexOutput) -> @location(0) vec4<f32>
Parameter Type
mesh VertexOutput
Returns: @location(0) vec4<f32>