Three.js - 聚光燈



定向光來自特定點,並直接從遠處發射到目標。它發出的所有光線彼此平行。一個很好的例子就是太陽。

const light = THREE.DirectionalLight(color, intensity)
light.position.set(2, 3, 4)
Directional Light
threejs_lights_and_shadows.htm
廣告
© . All rights reserved.