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
// Group 0 of the sky, additive effects and mist: view and frame data, the
// frame's environment panorama and PMREM atlas, and its fog volume. Rust layout:
// shading::bind::unlit.
@group(0) @binding(0) var<uniform> view:View;
@group(0) @binding(1) var<uniform> frame:Frame;
@group(0) @binding(3) var backdrop_map:texture_2d<f32>;
@group(0) @binding(5) var environment_map:texture_2d_array<f32>;
@group(0) @binding(7) var environment_sampler:sampler;
// The frame's fog volume (frame_fog.wgsl) and its sampler.
@group(0) @binding(27) var fog_volume:texture_3d<f32>;
@group(0) @binding(28) var fog_sampler:sampler;