Explorar o código

WebGPUUniformsGroup: Correct byte length for Matrix3 uniform.

Mugen87 %!s(int64=4) %!d(string=hai) anos
pai
achega
648f06b5da
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 ) {