Explorar o código

Updated sample code

Mr.doob %!s(int64=15) %!d(string=hai) anos
pai
achega
0e017c800d
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      README.md

+ 1 - 0
README.md

@@ -40,6 +40,7 @@ This code creates a camera, then creates a scene object, adds a bunch of random
 		function init()
 		{
 			camera = new Camera(0, 0, 1000);
+			camera.setProjectionMatrix(Matrix4.makePerspective(45, SCREEN_WIDTH/SCREEN_HEIGHT, 0.001, 1000));
 
 			scene = new Scene();