Advanced search tips: use spaces to require multiple terms (AND), | for alternatives (OR), wrap phrases in quotes (="a b"), =term for exact match, 'term to include, !term to exclude, ^term to match prefix, !^term to exclude prefix, .ext$ to match suffix, and !.ext$ to exclude suffix.

lightmap.wgsl

Import path

Bindings

lightmaps_texture

#
@group(1)
@binding(4)
var lightmaps_texture: texture_2d<f32>

lightmaps_sampler

#
@group(1)
@binding(5)
var lightmaps_sampler: sampler

Functions

lightmap

#

Samples the lightmap, if any, and returns indirect illumination from it.

fn lightmap (
exposure: f32
instance_index: u32
) -> vec3<f32>