Explorar o código

TSL: BatchNode - Fix BiasNode conflict (#28792)

* TSL: BatchNode fix bias issue

* cleanup
Renaud Rohlinger hai 1 ano
pai
achega
312f9c7931
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/nodes/accessors/BatchNode.js

+ 1 - 1
src/nodes/accessors/BatchNode.js

@@ -45,7 +45,7 @@ class BatchNode extends Node {
 			const size = textureSize( textureLoad( this.batchMesh._indirectTexture ), 0 );
 			const size = textureSize( textureLoad( this.batchMesh._indirectTexture ), 0 );
 			const x = int( id ).remainder( int( size ) );
 			const x = int( id ).remainder( int( size ) );
 			const y = int( id ).div( int( size ) );
 			const y = int( id ).div( int( size ) );
-			return textureLoad( this.batchMesh._indirectTexture, ivec2( x, y ), null, 'uvec4' ).x;
+			return textureLoad( this.batchMesh._indirectTexture, ivec2( x, y ) ).x;
 
 
 		} ).setLayout( {
 		} ).setLayout( {
 			name: 'getIndirectIndex',
 			name: 'getIndirectIndex',

粤ICP备19079148号