瀏覽代碼

fix transform to use non-transposed matrix.

Lucas Stadler 12 年之前
父節點
當前提交
1a76df52b2
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      js/pixl/public/trixl.html

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

@ -169,10 +169,10 @@
169 169
		matrix.translate = function(tx, ty, tz) {
170 170
			var tx = tx || 0.0, ty = ty || 0.0, tz = tz || 0.0;
171 171
			return [
172
				1, 0, 0, tx,
173
				0, 1, 0, ty,
174
				0, 0, 1, tz,
175
				0, 0, 0,  1
172
				1, 0, 0, 0,
173
				0, 1, 0, 0,
174
				0, 0, 1, 0,
175
				tx, ty, tz, 1
176 176
			];
177 177
		}
178 178