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:
变换操作,如
旋转(rotate)
,位置(position)
和缩放(scale)
,可以像其他 Three.js 网格一样执行。
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