Ver Fonte

WebGPUUniformsGroup: Correct byte length for Matrix3 uniform.

Mugen87 há 4 anos atrás
pai
commit
648f06b5da
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      examples/jsm/renderers/webgpu/WebGPUUniformsGroup.js

+ 1 - 1
examples/jsm/renderers/webgpu/WebGPUUniformsGroup.js

@@ -113,7 +113,7 @@ class WebGPUUniformsGroup extends WebGPUBinding {
 
 		} else if ( uniform.isMatrix3 ) {
 
-			size = 36;
+			size = 48; // (3 * 4) * 4 bytes
 
 		} else if ( uniform.isMatrix4 ) {