@galacean/engine-core 2.0.0-alpha.0 → 2.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.js CHANGED
@@ -23058,8 +23058,7 @@ var SkinUpdateFlag = /*#__PURE__*/ function(SkinUpdateFlag) {
23058
23058
  var boneCountChange = boneCount !== boneDataCreateCache.x;
23059
23059
  if (boneCountChange || bsUniformOccupiesCount !== boneDataCreateCache.y) {
23060
23060
  // directly use max joint count to avoid shader recompile
23061
- // @TODO: different shader type should use different count, not always 44
23062
- var remainUniformJointCount = Math.ceil((this._maxVertexUniformVectors - (44 + bsUniformOccupiesCount)) / 4);
23061
+ var remainUniformJointCount = Math.ceil((this._maxVertexUniformVectors - (SkinnedMeshRenderer._baseVertexUniformVectorCount + bsUniformOccupiesCount)) / 4);
23063
23062
  if (boneCount > remainUniformJointCount) {
23064
23063
  var engine = this.engine;
23065
23064
  if (engine._hardwareRenderer.canIUseMoreJoints) {
@@ -23237,6 +23236,8 @@ var SkinUpdateFlag = /*#__PURE__*/ function(SkinUpdateFlag) {
23237
23236
  ]);
23238
23237
  return SkinnedMeshRenderer;
23239
23238
  }(MeshRenderer);
23239
+ // @TODO: different shader type should use different count, not always 48
23240
+ /** @internal */ SkinnedMeshRenderer._baseVertexUniformVectorCount = 48;
23240
23241
  SkinnedMeshRenderer._jointCountProperty = ShaderProperty.getByName("renderer_JointCount");
23241
23242
  SkinnedMeshRenderer._jointSamplerProperty = ShaderProperty.getByName("renderer_JointSampler");
23242
23243
  SkinnedMeshRenderer._jointMatrixProperty = ShaderProperty.getByName("renderer_JointMatrix");