One WGSL function, name, that takes the bindings as parameters:
fn (atlas: <layout.textureType>, samp: sampler, table: ptr<storage, array, read>,
P, N, R: vec3f, roughness: f32, envRotation: mat4x4f, frameIrr: vec3f, withEnv: bool) -> vec4f
(envRotation: world to environment-slot directions, e.g. an environment rotation; identity if none)
Needs probeLookupIncludesWgsl in the same module (and WGSL's unrestricted pointer
parameters, which Chrome has shipped since 123). Returns what probeLookupWgsl's
probeLookup returns. With atlases: n > 1 (D4700) the function takes atlas_1 ... atlas_<n-1>
(same type) right after atlas.
One WGSL function,(atlas: <layout.textureType>, samp: sampler, table: ptr<storage, array, read>,
P, N, R: vec3f, roughness: f32, envRotation: mat4x4f, frameIrr: vec3f, withEnv: bool) -> vec4f
(
name, that takes the bindings as parameters: fnenvRotation: world to environment-slot directions, e.g. an environment rotation; identity if none) Needs probeLookupIncludesWgsl in the same module (and WGSL's unrestricted pointer parameters, which Chrome has shipped since 123). Returns what probeLookupWgsl'sprobeLookupreturns. Withatlases: n > 1(D4700) the function takesatlas_1...atlas_<n-1>(same type) right afteratlas.