未验证 提交 1a6d8e3e 编写于 作者: W Wermeille Bastien 提交者: GitHub

Extract light from control into light section

上级 38bf5f47
......@@ -43,11 +43,13 @@
controls.minDistance = 20;
controls.maxDistance = 50;
controls.maxPolarAngle = Math.PI / 2;
// ambient light
scene.add( new THREE.AmbientLight( 0x222222 ) );
// light
// point light
const light = new THREE.PointLight( 0xffffff, 1 );
camera.add( light );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册