Advanced search tips: use spaces to require multiple terms (AND), | for alternatives (OR), wrap phrases in quotes (="a b"), =term for exact match, 'term to include, !term to exclude, ^term to match prefix, !^term to exclude prefix, .ext$ to match suffix, and !.ext$ to exclude suffix.

spherical_harmonics.wgsl

Import path

Constants

shc

#
const shc: AbstractFloat = array<f32, 16>( 0.28209479177387814, -0.4886025119029199, 0.4886025119029199, -0.4886025119029199, 1.0925484305920792, -1.0925484305920792, 0.31539156525252005, -1.0925484305920792, 0.5462742152960396, -0.5900435899266435, 2.890611442640554, -0.4570457994644658, 0.3731763325901154, -0.4570457994644658, 1.445305721320277, -0.5900435899266435, )

Functions

srgb_to_linear

#
fn srgb_to_linear (
srgb_color: vec3<f32>
) -> vec3<f32>

spherical_harmonics_lookup

#
fn spherical_harmonics_lookup (
ray_direction: vec3<f32>
) -> vec3<f32>