feat(角色): 添加角色阴影渲染功能
新增 CharacterShadowActor 类用于处理角色阴影的渲染 在 CharacterObject 中实现阴影的同步和渲染逻辑 移除 GameDebugActor 中不再使用的合成纹理预览代码 添加 EnsureCompositeTextureReady 方法确保纹理准备就绪
This commit is contained in:
@@ -441,6 +441,11 @@ void CharacterAnimation::SetActionEndCallback(ActionEndCallback callback) {
|
||||
RefreshRuntimeCallbacks();
|
||||
}
|
||||
|
||||
bool CharacterAnimation::EnsureCompositeTextureReady() {
|
||||
RefreshCompositeTextureIfNeeded();
|
||||
return HasCompositeTexture();
|
||||
}
|
||||
|
||||
bool CharacterAnimation::HasCompositeTexture() const {
|
||||
return compositeCanvas_ && compositeCanvas_->IsCanvasReady() &&
|
||||
GetCurrentCompositeFrameInfo().valid;
|
||||
|
||||
Reference in New Issue
Block a user