Explorar el Código

add batch to cachekey (#28039)

Renaud Rohlinger hace 1 año
padre
commit
478d475337
Se han modificado 1 ficheros con 6 adiciones y 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;
 
 	}