Created
December 4, 2013 06:29
-
-
Save zhangwc/7783239 to your computer and use it in GitHub Desktop.
threejs 零散知识点整理
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1\ 创造一个空间,在这个空间内添加其他物体 | |
// SKYBOX/FOG | |
var skyBoxGeometry = new THREE.CubeGeometry( 10000, 10000, 10000 ); | |
var skyBoxMaterial = new THREE.MeshBasicMaterial( { color: 0x9999ff, side: THREE.BackSide } ); | |
var skyBox = new THREE.Mesh( skyBoxGeometry, skyBoxMaterial ); | |
skyBox.flipSided = true; // render faces from inside of the cube, instead of from outside (default). | |
// scene.add(skyBox); | |
scene.fog = new THREE.FogExp2( 0x9999ff, 0.00025 ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment