Explorar o código

Fix wrong handling of mat3 in shaders in webgpu

Popov72 %!s(int64=4) %!d(string=hai) anos
pai
achega
ccbc0dd39f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Engines/WebGPU/webgpuPipelineContext.ts

+ 1 - 1
src/Engines/WebGPU/webgpuPipelineContext.ts

@@ -18,7 +18,7 @@ const _uniformSizes: { [type: string]: number } = {
     "vec4": 4,
     "ivec4": 4,
     "mat2": 4,
-    "mat3": 9,
+    "mat3": 12,
     "mat4": 16
 };