Explorar o código

Fixing improper aspect ratio on window resize

Dávid Komorowicz %!s(int64=8) %!d(string=hai) anos
pai
achega
a2a744c891
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/webgl_morphnormals.html

+ 1 - 1
examples/webgl_morphnormals.html

@@ -148,7 +148,7 @@
 
 				renderer.setSize( SCREEN_WIDTH, SCREEN_HEIGHT );
 
-				camera.aspect = 0.5 * SCREEN_WIDTH / SCREEN_HEIGHT;
+				camera.aspect =SCREEN_WIDTH / SCREEN_HEIGHT;
 				camera.updateProjectionMatrix();
 
 			}

粤ICP备19079148号