Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/threejs_4_deno/src/Three.js>PointLight

A simple transformation of three.js for use within a Deno workflow
Go to Latest
class PointLight
extends Light
Re-export
import { PointLight } from "https://deno.land/x/threejs_4_deno@v121/src/Three.js";

Examples

const light = new THREE.PointLight( 0xff0000, 1, 100 ); light.position.set( 50, 50, 50 ); scene.add( light );

Constructors

new
PointLight(
color?: Color | string | number,
intensity?: number,
distance?: number,
decay?: number,
)

Properties

decay: number
distance: number

If non-zero, light will attenuate linearly from maximum intensity at light position down to zero at distance.

intensity: number

Light's intensity.

power: number
type: string