mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-21 23:12:03 -07:00
Fix uniform matrix functions in WebGLInterface
This commit is contained in:
Vendored
+2
-2
@@ -736,11 +736,11 @@ class WebGLInterface {
|
||||
|
||||
UniformMatrix2fv: (location, addr) => {
|
||||
let array = this.mem.loadF32Array(addr, 2*2);
|
||||
this.ctx.uniformMatrix4fv(this.uniforms[location], false, array);
|
||||
this.ctx.uniformMatrix2fv(this.uniforms[location], false, array);
|
||||
},
|
||||
UniformMatrix3fv: (location, addr) => {
|
||||
let array = this.mem.loadF32Array(addr, 3*3);
|
||||
this.ctx.uniformMatrix4fv(this.uniforms[location], false, array);
|
||||
this.ctx.uniformMatrix3fv(this.uniforms[location], false, array);
|
||||
},
|
||||
UniformMatrix4fv: (location, addr) => {
|
||||
let array = this.mem.loadF32Array(addr, 4*4);
|
||||
|
||||
Reference in New Issue
Block a user