Search across packages, versions, files, declarations, and comments. Use multiple terms to narrow results (AND), and add @vertex, @fragment, or @compute to filter by shader stage.

Bindings

lightmaps_textures

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

lightmaps_samplers

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

lightmaps_texture

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

lightmaps_sampler

#
@group(2)
@binding(5)
var lightmaps_sampler: 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>

lightmap_size

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

sample

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

w0

#
fn w0 (
a: f32
) -> f32

w1

#
fn w1 (
a: f32
) -> f32

w2

#
fn w2 (
a: f32
) -> f32

w3

#
fn w3 (
a: f32
) -> f32

g0

#
fn g0 (
a: f32
) -> f32

g1

#
fn g1 (
a: f32
) -> f32

h0_approx

#
fn h0_approx (
a: f32
) -> f32

h1_approx

#
fn h1_approx (
a: f32
) -> f32
Contents