feat(renderer/roofs): 实现屋顶(Roofs)在角色进入遮挡区域时的动态半透明渐变(Roof Fade) #44
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
背景与现状
在罗格营地阿卡拉的帐篷、恰西铁匠棚、鲁高因民宅等固定场景中,包含大量
TileRoof = 15的屋顶瓦片。当前
src/game/d2map.ts:122已经将屋顶与普通墙面分离,在绘制时作为最顶层(Pass 4)进行绘制。但渲染器缺少角色与屋顶覆盖网格的碰撞判定与动态透明度支持,导致角色走入帐篷或建筑物内时,角色模型被屋顶完全遮挡而不可见。暗黑2原版逻辑(Oracle / Ground Truth)
TileRoof覆盖的网格下方时,引擎会检测该遮挡关系。解决建议与改造方案
已在分支
fix/issue-44中真实修复并验证通过。Commit:
57c13bd验证项:
tests/roofs.test.ts)npx tsc --noEmit)npm run build)