Visit the Documentation of the upcoming Threlte 6.
  1. @threlte/core
  2. FogExp2

@threlte/core

FogExp2

This module will be moved to @threlte/extras at some point in the future. Please read the update notice.

A <FogExp2> adds itself to the scene directly. The placement in the hierarchy is therefore unimportant as long as it's inside the <Canvas> component.

Import

Source

Github View Source Code

Package

NPM View Package

Related Docs


Example

<script>
  import { FogExp2 } from '@threlte/core'
</script>

<FogExp2 color={'#dddddd'} density={0.3} />

Properties

// optional
color: THREE.ColorRepresentation = 0xffffff
density: number | undefined = undefined

Bindings

fog: THREE.FogExp2

Previous <- Fog