Skip to content

Instantly share code, notes, and snippets.

@zhangwc
Created December 4, 2013 06:29
Show Gist options
  • Save zhangwc/7783239 to your computer and use it in GitHub Desktop.
Save zhangwc/7783239 to your computer and use it in GitHub Desktop.
threejs 零散知识点整理
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