@pmndrs/reflections
Docs
Examples
GitHub
Preparing search index...
core
lodWgsl
Function lodWgsl
lodWgsl
(
mapping
?:
ProbeLodMapping
,
)
:
"maxLod * r * (2.0 - r)"
|
"pr_lodAlpha(r, maxLod)"
WGSL roughness -> lod for a mapping (
r
perceptual, clamped), in terms of
r
and
maxLod
.
Parameters
mapping
:
ProbeLodMapping
= DEFAULT_PROBE_LOD_MAPPING
Returns
"maxLod * r * (2.0 - r)"
|
"pr_lodAlpha(r, maxLod)"
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
Docs
Examples
GitHub
@pmndrs/reflections
Loading...
WGSL roughness -> lod for a mapping (
rperceptual, clamped), in terms ofrandmaxLod.