提交 5fd1c8b6 编写于 作者: M Mr.doob

Fixed example.

上级 b3a0efc4
......@@ -47,6 +47,7 @@
var stats;
var scene;
var pointLight;
var camera;
var renderer;
var model;
......@@ -126,8 +127,6 @@
// Lights
pointLight = new THREE.PointLight( 0xffffff, 1.75 );
pointLight.position = camera.position;
scene.add( pointLight );
// Renderer
......@@ -224,6 +223,8 @@
}
pointLight.position.copy( camera.position );
progress += frameTime;
lastTimestamp = timestamp;
renderer.render( scene, camera );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册