Back home 🏡 WGSL Spec Bevy WGSL Functions

custom_material_2d.wgsl

Bindings

Name Group Binding index Binding type Type
material_color # 2 0 <uniform> vec4<f32>
base_color_texture # 2 1 texture_2d<f32>
base_color_sampler # 2 2 sampler

Functions

fragment

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