sgl-3d 0.4.2

Caller-driven 3D rendering for SGL games, native and in the browser (WebGPU)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
// The lit provider of the Extended binding tier: reads lit group 0's
// bindings only it binds (bind_lit_extended.wgsl). A program that composes
// surface.wgsl composes it or lit_basic.wgsl, exactly one; with it comes the
// dynamic GI volume's irradiance (dynamic_gi_sample.wgsl).
// The lightmap's directional lobe at `uv` in layer `layer`.
fn baked_lightmap_direction(uv:vec2<f32>,layer:i32)->vec4<f32> {
 return textureSampleLevel(static_lightmap_direction,baked_sampler,uv,layer,0.);
}
// The irradiance atlas's directional lobe at `uv` in layer `layer`.
fn baked_atlas_direction(uv:vec2<f32>,layer:i32)->vec4<f32> {
 return textureSampleLevel(static_direction_atlas,baked_sampler,uv,layer,0.);
}