Переглянути джерело

TSL: BatchNode - Fix BiasNode conflict (#28792)

* TSL: BatchNode fix bias issue

* cleanup
Renaud Rohlinger 1 рік тому
батько
коміт
312f9c7931
1 змінених файлів з 1 додано та 1 видалено
  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 x = int( id ).remainder( 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( {
 			name: 'getIndirectIndex',