Skip to content

Commit

Permalink
WebGPURenderer: Fix the use of same Material with different Skeleton (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sunag committed Dec 19, 2023
1 parent 722bb09 commit e5c2a56
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/jsm/renderers/common/RenderObject.js
Expand Up @@ -129,6 +129,12 @@ export default class RenderObject {

}

if ( object.skeleton ) {

cacheKey += object.skeleton.uuid + ',';

}

if ( object.morphTargetInfluences ) {

cacheKey += object.morphTargetInfluences.length + ',';
Expand Down

0 comments on commit e5c2a56

Please sign in to comment.