Ver código fonte

add batch to cachekey (#28039)

Renaud Rohlinger 1 ano atrás
pai
commit
478d475337
1 arquivos alterados com 6 adições e 0 exclusões
  1. 6 0
      examples/jsm/renderers/common/RenderObject.js

+ 6 - 0
examples/jsm/renderers/common/RenderObject.js

@@ -186,6 +186,12 @@ export default class RenderObject {
 
 		}
 
+		if ( object.isBatchedMesh ) {
+
+			cacheKey += object._matricesTexture.uuid + ',';
+
+		}
+
 		return cacheKey;
 
 	}