Starter template
Render effects the starter template ships in the scaffolded project's source.
On this page
Generated from the engine's capability manifest: 3 functions. Each entry is the exported signature, what it is for, and a working example.
gradualBackground
ThreeNative equivalent for realism-effects gradualBackground.
function gradualBackgroundUse it to
- grade a background by distance
Example
gradualBackground(...)Good to know
- Use the running WebGPU renderer and keep appearance choices in template render source.
lensDistortion
ThreeNative equivalent for realism-effects lensDistortion.
function lensDistortionUse it to
- warp the image with radial lens distortion
Example
lensDistortion(...)Good to know
- Use the running WebGPU renderer and keep appearance choices in template render source.
sparkle
ThreeNative equivalent for realism-effects sparkle.
function sparkleUse it to
- add glints to bright highlights
Example
sparkle(...)Good to know
- Use the running WebGPU renderer and keep appearance choices in template render source.