我有一个问题。
我在three.js上编写了一些代码,其中包括场景、2个对象、渲染器和相机。但是当我添加光源时,我没有看到它!
我尝试了一些选项..但没有什么帮助我
我的代码在这里 - http://codepen.io/usf/pen/LaDwh
var light = new THREE.SpotLight(0xff0000);
light.position.set( 0, 0, 50 );
var pointLight = new THREE.PointLight( 0xffffff);
pointLight.position.set( 0, 0, 50 );
scene.add(light);
scene.add(pointLight);
//code
renderer.render(scene, camera);
我不知道是什么原因导致了那个问题 :(