Prechádzať zdrojové kódy

add batch to cachekey (#28039)

Renaud Rohlinger 1 rok pred
rodič
commit
478d475337

+ 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;
 
 	}