feat(render): 地面物品小图标自适应渲染与动态闪光粒子特效 (Ground Item Rendering & Glint Sparkle) #389
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?
问题背景与视觉现状
目前场景渲染管线(
src/scene/act-scene.ts)中已具备地面、阴影、墙壁、屋顶、环境对象、玩家与怪物的渲染,但未接入地面物品的绘制层。当物品掉落在地面上时没有任何贴图视觉呈现,也缺少暗黑 2 原版标志性的宝石与宝物动态闪烁光芒(Glint/Sparkle),无法给玩家带来正向的拾取诱惑与视觉反馈。原版 Diablo II v1.13c 核心机制规范(Ground Truth)
1. 地面物品图元渲染与等距透视投影 (Isometric Depth Sorting)
invgld、中堆金币invgldm、大堆金币invgldh/flpgld)。entities深度排序队列(深度值为cell.x + cell.y),严格绘制在地面(Floors)与阴影(Shadows)之后,但在后方墙体遮挡之前,保证站在物品前方的角色或怪物自然遮挡物品。2. 动态微芒/星芒闪烁特效 (Glint / Sparkle Animation)
改造与验收标准