Bevy Shader Explorer
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.
☾
Packages
›
bevy_pbr
0.15.3
0.15.0
0.15.1
0.15.2
0.19.1
›
lightmap.wgsl
Copy import path
Save
Bindings
lightmaps_texture
#
Copy import statement
@
group
(
1
)
@
binding
(
4
)
var
lightmaps_texture:
texture_2d
<
f32
>
lightmaps_sampler
#
Copy import statement
@
group
(
1
)
@
binding
(
5
)
var
lightmaps_sampler:
sampler
Functions
lightmap
#
Copy import statement
Used by 1 shader in bevy_pbr 0.15.3
bevy_pbr 0.15.3 — pbr_fragment.wgsl
Samples the lightmap, if any, and returns indirect illumination from it.
fn
lightmap
(
uv:
vec2
<
f32
>,
exposure:
f32
,
instance_index:
u32
)
->
vec3
<
f32
>
Contents
Bindings
lightmaps_texture
lightmaps_sampler
Functions
lightmap
Samples the lightmap, if any, and returns indirect illumination from it.