|
74 | 74 | //autoRotate: true,
|
75 | 75 |
|
76 | 76 | //camera: 'perspective'
|
77 |
| - |
| 77 | + |
78 | 78 | };
|
79 | 79 |
|
80 | 80 | init();
|
|
89 | 89 | gui = new dat.GUI();
|
90 | 90 |
|
91 | 91 | gui.add( params, "clearPass" );
|
92 |
| - gui.add( params, "clearColor", [ 'black', 'white', 'blue', 'green', 'red' ] ); |
93 |
| - gui.add( params, "clearAlpha", 0, 1 ); |
| 92 | + gui.add( params, "clearColor", [ 'black', 'white', 'blue', 'green', 'red' ] ); |
| 93 | + gui.add( params, "clearAlpha", 0, 1 ); |
94 | 94 |
|
95 | 95 | gui.add( params, "texturePass" );
|
96 |
| - gui.add( params, "texturePassOpacity", 0, 1 ); |
| 96 | + gui.add( params, "texturePassOpacity", 0, 1 ); |
97 | 97 |
|
98 | 98 | gui.add( params, "cubeTexturePass" );
|
99 |
| - gui.add( params, "cubeTexturePassOpacity", 0, 1 ); |
100 |
| - |
| 99 | + gui.add( params, "cubeTexturePassOpacity", 0, 1 ); |
| 100 | + |
101 | 101 | gui.add( params, "renderPass" );
|
102 |
| - |
| 102 | + |
103 | 103 | //gui.add( params, "autoRotate" );
|
104 | 104 |
|
105 | 105 | //gui.add( params, 'camera', [ 'perspective', 'orthographic' ] );
|
106 |
| - |
| 106 | + |
107 | 107 | gui.open();
|
108 | 108 |
|
109 | 109 | }
|
|
206 | 206 | renderPass = new THREE.RenderPass( scene, cameraP );
|
207 | 207 | renderPass.clear = false;
|
208 | 208 | composer.addPass( renderPass );
|
209 |
| - |
| 209 | + |
210 | 210 | copyPass = new THREE.ShaderPass( THREE.CopyShader );
|
211 | 211 | copyPass.renderToScreen = true;
|
212 | 212 | composer.addPass( copyPass );
|
213 |
| - |
| 213 | + |
214 | 214 | var controls = new THREE.OrbitControls( cameraP, renderer.domElement );
|
215 | 215 | controls.target.set( 0, 0, 0 );
|
216 | 216 | controls.update();
|
|
250 | 250 | stats.begin();
|
251 | 251 |
|
252 | 252 | cameraP.updateMatrixWorld( true );
|
253 |
| - |
| 253 | + |
254 | 254 | var newColor = clearPass.clearColor;
|
255 | 255 | switch( params.clearColor ) {
|
256 | 256 | case 'blue': newColor = 0x0000ff; break;
|
|
259 | 259 | case 'white': newColor = 0xffffff; break;
|
260 | 260 | case 'black': newColor = 0x000000; break;
|
261 | 261 | }
|
262 |
| - |
| 262 | + |
263 | 263 | clearPass.enabled = params.clearPass;
|
264 | 264 | clearPass.clearColor = newColor;
|
265 | 265 | clearPass.clearAlpha = params.clearAlpha;
|
|
0 commit comments