提交 e6a4f0c4 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #12155 from Astrak/skysize

Sky radius as argument of THREE.Sky
......@@ -27,7 +27,7 @@ THREE.Sky = function () {
side: THREE.BackSide
} );
var skyGeo = new THREE.SphereBufferGeometry( 450000, 32, 15 );
var skyGeo = new THREE.SphereBufferGeometry( 1, 32, 15 );
var skyMesh = new THREE.Mesh( skyGeo, skyMat );
// Expose variables
......
......@@ -67,6 +67,9 @@
// Add Sky Mesh
sky = new THREE.Sky();
sky.mesh.scale.setScalar( 450000 );
sky.mesh.matrixAutoUpdate = false;//The sky is still (see https://threejs.org/docs/#manual/introduction/How-to-update-things)
sky.mesh.updateMatrixWorld();//So only compute its matrix now.
scene.add( sky.mesh );
// Add Sun Helper
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册