comparison webGL/dandy/dandy4.html @ 16:527eac9a7d0b

update
author NOBUYASU Oshiro
date Sat, 17 Jul 2010 12:56:57 +0900
parents a2b31fe50d9d
children 2018ad94fd9b
comparison
equal deleted inserted replaced
15:7f68fc18554a 16:527eac9a7d0b
133 ctx.viewport(0, 0, width, height); 133 ctx.viewport(0, 0, width, height);
134 134
135 ctx.perspectiveMatrix = new CanvasMatrix4(); 135 ctx.perspectiveMatrix = new CanvasMatrix4();
136 ctx.perspectiveMatrix.lookat(0,0,-60, 0, 0, 0, 0, 1, 0); 136 ctx.perspectiveMatrix.lookat(0,0,-60, 0, 0, 0, 0, 1, 0);
137 ctx.perspectiveMatrix.ortho(ortho.left, ortho.right, ortho.top, -ortho.bottom, 0, 10000); 137 ctx.perspectiveMatrix.ortho(ortho.left, ortho.right, ortho.top, -ortho.bottom, 0, 10000);
138 // ctx.perspectiveMatrix.ortho(-600, 600, 600, -600, 0, 10000); 138 // ctx.perspectiveMatrix.ortho(-600, 600, 600, -600, 0, 10000);
139 } 139 }
140 140
141 141
142 142
143 function loop(ctx, ortho) 143 function loop(ctx, ortho)