- Three.js 教程
- Three.js - 首頁
- Three.js - 簡介
- Three.js - 安裝
- Three.js - Hello Cube App
- Three.js - 渲染器和響應
- Three.js - 自適應設計
- Three.js - 除錯和統計
- Three.js - 相機
- Three.js - 控制元件
- Three.js - 燈光和陰影
- Three.js - 幾何體
- Three.js - 材質
- Three.js - 紋理
- Three.js - 繪製線
- Three.js - 動畫
- Three.js - 建立文字
- Three.js - 載入 3D 模型
- Three.js - 庫和外掛
- Three.js 有用資源
- Three.js - 快速指南
- Three.js - 有用資源
- Three.js - 討論
Three.js - 聚光燈
定向光來自特定點,並直接從遠處發射到目標。它發出的所有光線彼此平行。一個很好的例子就是太陽。
const light = THREE.DirectionalLight(color, intensity) light.position.set(2, 3, 4)
threejs_lights_and_shadows.htm
廣告