1. Core Components
  2. FogExp2

Core Components

FogExp2

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

Example

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

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

Properties

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

Bindings

fog: THREE.FogExp2

Previous <- Fog