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

Added skybox to webvr_sandbox.

上级 94aedce3
......@@ -40,8 +40,13 @@
function init() {
var background = new THREE.CubeTextureLoader()
.setPath( 'textures/cube/MilkyWay/' )
.load( [ 'dark-s_px.jpg', 'dark-s_nx.jpg', 'dark-s_py.jpg', 'dark-s_ny.jpg', 'dark-s_pz.jpg', 'dark-s_nz.jpg' ] );
background.format = THREE.RGBFormat;
scene = new THREE.Scene();
scene.background = new THREE.Color( 0x101010 );
scene.background = background;
camera = new THREE.PerspectiveCamera( 50, window.innerWidth / window.innerHeight, 0.1, 10 );
scene.add( camera );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册