Back home 🏡 WGSL Spec Bevy WGSL Functions

cubemap_unlit.wgsl

Bindings

Name Group Binding index Binding type Type Shader Def
base_color_texture # 2 0 texture_cube_array<f32> 🟢 CUBEMAP_ARRAY
base_color_texture # 2 0 texture_cube<f32> 🔴 CUBEMAP_ARRAY
base_color_sampler # 2 1 sampler

Functions

fragment

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