feat(stage-ui-tachie): add tachie support (#2115)

This commit is contained in:
藍+85CD
2026-07-28 23:35:30 +08:00
committed by GitHub
parent acbbab0bd7
commit 880d1bf7a9
45 changed files with 2095 additions and 12 deletions
@@ -116,7 +116,7 @@ const isTransparent = computed(() => {
if (stageModelRenderer.value === 'vrm')
return shouldUseThreeTransparencyHitTest.value ? isTransparentByThree.value : true
if (stageModelRenderer.value === 'live2d')
if (stageModelRenderer.value === 'live2d' || stageModelRenderer.value === 'tachie')
return isTransparentByPixels.value
return true
@@ -128,7 +128,7 @@ const isTransparentForMouseEvents = computed(() => {
if (stageModelRenderer.value === 'vrm')
return shouldUseThreeTransparencyHitTest.value ? isTransparentByThreeExact.value : true
if (stageModelRenderer.value === 'live2d')
if (stageModelRenderer.value === 'live2d' || stageModelRenderer.value === 'tachie')
return isTransparentByPixelsExact.value
return true
@@ -190,6 +190,20 @@ const modelSettingsRuntimeSnapshot = computed<ModelSettingsRuntimeSnapshot>(() =
})
}
if (stageModelRenderer.value === 'tachie') {
const phase = resolveComponentStateToRuntimePhase(componentStateStage.value, { hasModel })
return createEmptyModelSettingsRuntimeSnapshot({
ownerInstanceId: modelSettingsRuntimeOwnerInstanceId,
renderer: 'tachie',
phase,
controlsLocked: hasModel ? phase !== 'mounted' : false,
previewAvailable: hasModel,
canCapturePreview: false,
updatedAt: Date.now(),
})
}
if (stageModelRenderer.value === 'mmd') {
const phase = resolveComponentStateToRuntimePhase(componentStateStage.value, { hasModel })