小编Nat*_*cio的帖子

SpotLight在three.js中旋转

我正在尝试旋转聚光灯.我的代码是:

var light   = new THREE.SpotLight( color, intensity, distance );
light.position.set( 0, 100, 0 );
light.rotation.set( 0, Math.PI, 0 );
light.shadowCameraFar = 50;
light.shadowCameraNear      = 0.01;     
light.castShadow        = true;
light.shadowDarkness        = 0.5;
light.shadowCameraVisible   = true;
light.shadowCameraFar = 800;
light.shadowCameraFov = 15;
scene.add( light );
Run Code Online (Sandbox Code Playgroud)

我想知道我做错了什么.聚光灯不会改变其旋转,与我放置的值无关.

javascript 3d three.js

5
推荐指数
1
解决办法
6840
查看次数

标签 统计

3d ×1

javascript ×1

three.js ×1