Lights
DirectionalLight
const directionalLight = new THREE.DirectionalLight(0xffffff, 5);
directionalLight.castShadow = true;
directionalLight.position.set(3, 4, 5);
directionalLight.lookAt(0, 0, 0); // optional
scene.add(directionalLight);const directionalLightHelper = new Three.DirectionalHemisphereLight
const hemisphereLight = new THREE.HemisphereLight(0xb4a912, 0x12f34f, 5);
hemisphereLight.position.set(0, 1, 0);
hemisphereLight.lookAt(0, 0, 0);
scene.add(hemisphereLight);
PointLight
RectAreaLight
SpotLight
Last updated