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.DirectionalLight

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

Examples

// White directional light at half intensity shining from the top. const directionalLight = new THREE.DirectionalLight( 0xffffff, 0.5 ); directionalLight.position.set( 0, 1, 0 ); scene.add( directionalLight );

Constructors

new
DirectionalLight(color?: ColorRepresentation, intensity?: number)

Properties

intensity: number

Light's intensity.

readonly
isDirectionalLight: true
readonly
position: Vector3
target: Object3D

Target used for shadow camera orientation.

type: string