Three Area Light
Three.js Area Light
import * as REAL from "real_api";
export function AddLights(scene) {
const width = 1;
const height = 1;
const color = 0xa88f32;
const intensity = 2;
const light = new REAL.AreaLight(width, height, color, intensity);
scene.add(light);
}

Transform operations:
The transform operations such as
rotate
position
andquaternion
can be performed same as other three.js meshes
export function AddLights(scene) {
const width = 1.8;
const height = 1.5;
const color = 0xa88f32;
const intensity = 2;
const light = new REAL.AreaLight(width, height, color, intensity);
light.position.set(0, 1.5, -2.5);
scene.add(light);
}

Last updated