Explorar o código

add batch to cachekey (#28039)

Renaud Rohlinger hai 1 ano
pai
achega
478d475337
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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;
 
 	}