Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/threejs_4_deno/src/scenes/Fog.js>Fog

A simple transformation of three.js for use within a Deno workflow
Go to Latest
class Fog
implements IFog
import { Fog } from "https://deno.land/x/threejs_4_deno@v121/src/scenes/Fog.js";

This class contains the parameters that define linear fog, i.e., that grows linearly denser with the distance.

Constructors

new
Fog(
color: Color | number | string,
near?: number,
far?: number,
)

Properties

color: Color

Fog color.

far: number

The maximum distance at which fog stops being calculated and applied. Objects that are more than 'far' units away from the active camera won't be affected by fog.

readonly
isFog: true
name: string
near: number

The minimum distance to start applying fog. Objects that are less than 'near' units from the active camera won't be affected by fog.

Methods

clone(): this
toJSON(): any