Browse Source

fix typo.

Lucas Stadler 12 years ago
parent
commit
e7ed70ea53
2 changed files with 2 additions and 2 deletions
  1. 1 1
      js/pixl/public/matrix.js
  2. 1 1
      js/pixl/public/trixl.html

+ 1 - 1
js/pixl/public/matrix.js

@ -101,7 +101,7 @@ matrix.rotateZ = function(angle) {
101 101
	];
102 102
}
103 103
104
matrix.persective = function(fov, aspect) {
104
matrix.perspective = function(fov, aspect) {
105 105
	return [
106 106
		Math.PI / 3 / aspect, 0, 0, 0,
107 107
		0, Math.PI / 3, 0, 0,

+ 1 - 1
js/pixl/public/trixl.html

@ -157,7 +157,7 @@
157 157
					matrix.rotateX(angle.x / 10),
158 158
					matrix.translate(pos[0] + offset.x, pos[1] + offset.y, pos[2] + offset.z),
159 159
					view,
160
					matrix.persective(Math.PI / 3, aspect)
160
					matrix.perspective(Math.PI / 3, aspect)
161 161
				);
162 162
			}
163 163
			var t = transform([0.0, 0.0, 2]);