commit 94ee8796606c814a57587307fe303cb5066bfc70
parent f46943bcd84f540ea51a02428c31c424c2548bad
Author: amin <dev@aminmesbah.com>
Date: Sun, 23 Jun 2019 20:49:02 +0000
Fix contrarotation
The matrix pulled from the valueptr needs to be transposed in webgl.
FossilOrigin-Name: ced89951880cf72c02fc929da8a2552eb738dbe5dd1c8ec1bb478067f708a6e5
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/js/imports.js b/js/imports.js
@@ -134,7 +134,7 @@ imports["webglUniform3f"] = function(location_id, x, y, z) {
imports["webglUniformMatrix4fv"] = function(location_id, data) {
let loc = gl_id_map[location_id];
let dataslice = memory.slice(data, data + 4 * 16);
- gl.uniformMatrix4fv(loc, false, new Float32Array(dataslice.buffer));
+ gl.uniformMatrix4fv(loc, true, new Float32Array(dataslice.buffer));
}
imports["webglUseProgram"] = function(program_id) {
let program = gl_id_map[program_id];