瀏覽代碼

Fix wrong handling of mat3 in shaders in webgpu

Popov72 4 年之前
父節點
當前提交
ccbc0dd39f
共有 1 個文件被更改,包括 1 次插入1 次删除
  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
 };