Back home 🏡 WGSL Spec Bevy WGSL Functions

lightmap.wgsl

Import path

Bindings

Name Group Binding index Binding type Type
lightmaps_texture # 1 4 texture_2d<f32>
lightmaps_sampler # 1 5 sampler

Functions

lightmap

#
Samples the lightmap, if any, and returns indirect illumination from it.
fn lightmap(uv: vec2<f32>, exposure: f32, instance_index: u32) -> vec3<f32>
Parameter Type
uv vec2<f32>
exposure f32
instance_index u32
Returns: vec3<f32>