瀏覽代碼

Fixed resize in sea3d examples.

Mr.doob 9 年之前
父節點
當前提交
a0dbe4310b

+ 1 - 0
examples/webgl_loader_sea3d.html

@@ -158,6 +158,7 @@
 				camera.aspect = window.innerWidth / window.innerHeight;
 				camera.updateProjectionMatrix();
 
+				composer.setSize( window.innerWidth, window.innerHeight );
 				renderer.setSize( window.innerWidth, window.innerHeight );
 
 			}

+ 1 - 0
examples/webgl_loader_sea3d_hierarchy.html

@@ -161,6 +161,7 @@
 				camera.aspect = window.innerWidth / window.innerHeight;
 				camera.updateProjectionMatrix();
 
+				composer.setSize( window.innerWidth, window.innerHeight );
 				renderer.setSize( window.innerWidth, window.innerHeight );
 
 			}

+ 1 - 0
examples/webgl_loader_sea3d_keyframe.html

@@ -200,6 +200,7 @@
 				camera.aspect = window.innerWidth / window.innerHeight;
 				camera.updateProjectionMatrix();
 
+				composer.setSize( window.innerWidth, window.innerHeight );
 				renderer.setSize( window.innerWidth, window.innerHeight );
 
 			}

+ 1 - 0
examples/webgl_loader_sea3d_morph.html

@@ -174,6 +174,7 @@
 				camera.aspect = window.innerWidth / window.innerHeight;
 				camera.updateProjectionMatrix();
 
+				composer.setSize( window.innerWidth, window.innerHeight );
 				renderer.setSize( window.innerWidth, window.innerHeight );
 
 			}

+ 1 - 0
examples/webgl_loader_sea3d_skinning.html

@@ -191,6 +191,7 @@
 				camera.aspect = window.innerWidth / window.innerHeight;
 				camera.updateProjectionMatrix();
 
+				composer.setSize( window.innerWidth, window.innerHeight );
 				renderer.setSize( window.innerWidth, window.innerHeight );
 
 			}

+ 3 - 2
examples/webgl_loader_sea3d_sound.html

@@ -252,7 +252,7 @@
 
 			function initKeyDown() {
 
-				var onKeyDown = function ( event ) {
+				function onKeyDown( event ) {
 
 					switch ( event.keyCode ) {
 
@@ -280,7 +280,7 @@
 
 				};
 
-				var onKeyUp = function ( event ) {
+				function onKeyUp( event ) {
 
 					switch( event.keyCode ) {
 
@@ -376,6 +376,7 @@
 				camera.aspect = window.innerWidth / window.innerHeight;
 				camera.updateProjectionMatrix();
 
+				composer.setSize( window.innerWidth, window.innerHeight );
 				renderer.setSize( window.innerWidth, window.innerHeight );
 
 			}