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

x/remapper/src/deps.ts>three.SpotLight

A framework for Beat Saber map scripting.
Go to Latest
class three.SpotLight
extends Light
import { three } from "https://deno.land/x/remapper@2.1.0/src/deps.ts";
const { SpotLight } = three;

A point light that can cast shadow in one direction.

Constructors

new
SpotLight(
intensity?: number,
distance?: number,
angle?: number,
penumbra?: number,
decay?: number,
)

Properties

angle: number

Maximum extent of the spotlight, in radians, from its direction.

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.

readonly
isSpotLight: true
penumbra: number
position: Vector3
power: number
target: Object3D

Spotlight focus points at target.position.

type: string