Browse Source

Updated sample code

Mr.doob 15 years ago
parent
commit
0e017c800d
1 changed files with 1 additions and 0 deletions
  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();