Просмотр исходного кода

WebGPURenderer: Fix instance meshes that shares the same count (#29066)

* WebGPURenderer: Fix instance meshes sharing same count

* cover only instances meshes
Renaud Rohlinger 1 год назад
Родитель
Сommit
6697bd1640
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/renderers/common/RenderObject.js

+ 1 - 1
src/renderers/common/RenderObject.js

@@ -263,7 +263,7 @@ export default class RenderObject {
 
 		if ( object.count > 1 ) {
 
-			cacheKey += object.count + ',';
+			cacheKey += object.count + ',' + object.uuid + ',';
 
 		}
 

粤ICP备19079148号