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

Fixed example.

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