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_texture

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

lightmaps_sampler

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

Functions

lightmap

#
Used by 1 shader in bevy_pbr 0.15.3

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

fn lightmap (
uv: vec2<f32>,
exposure: f32,
instance_index: u32
) -> vec3<f32>
Contents