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_textures

#

Shader defs requirments:

🟢 MULTIPLE_LIGHTMAPS_IN_ARRAY

@group(1)
@binding(4)
var lightmaps_textures: binding_array<texture_2d<f32>, 4>

lightmaps_samplers

#

Shader defs requirments:

🟢 MULTIPLE_LIGHTMAPS_IN_ARRAY

@group(1)
@binding(5)
var lightmaps_samplers: binding_array<sampler, 4>

lightmaps_texture

#

Shader defs requirments:

šŸ”“ MULTIPLE_LIGHTMAPS_IN_ARRAY

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

lightmaps_sampler

#

Shader defs requirments:

šŸ”“ MULTIPLE_LIGHTMAPS_IN_ARRAY

@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>

lightmap_size

#
fn lightmap_size (
lightmap_slot: u32
) -> vec2<u32>

sample

#
fn sample (
lightmap_slot: u32
) -> vec3<f32>

w0

#
fn w0 ( ) -> f32

w1

#
fn w1 ( ) -> f32

w2

#
fn w2 ( ) -> f32

w3

#
fn w3 ( ) -> f32

g0

#
fn g0 ( ) -> f32

g1

#
fn g1 ( ) -> f32

h0_approx

#
fn h0_approx ( ) -> f32

h1_approx

#
fn h1_approx ( ) -> f32