multiscattering_lut.wgsl

Constants
Bindings
@group(0)
@binding(13)
var
multiscattering_lut_out:
texture_storage_2d<rgba16float, write>
Structures
Functions
@compute
Runs custom parallel code on the GPU, not limited to graphics
@workgroup_size(1, 1, 64)
Defines the size of a thread group. One to three numbers: width (x), height (y), and depth (z). Missing values default to 1
fn
sample_multiscattering_dir
(
r:
f32
,

ray_dir:
vec3<f32>
,

light_dir:
vec3<f32>
)
->
MultiscatteringSample

Lambert equal-area projection.