diablo2-web/docs
troytt b51d839d8c feat(lighting): implement authentic Diablo II v1.13c Glide dynamic lighting system
- P0 Data Contract Fixes:
  * Fix missile additive blending to use authentic 1.13c Missiles.txt trans === 1
  * Strip developmental || 255 fallback from color channels to preserve authentic 0 values
  * Add full 136-level lighting metadata from Levels.txt in levels-meta.ts
  * Wire MonStats2 and Overlay lighting in data-registry.ts

- P1 Reverse Engineering & Math Specification:
  * Reverse engineer D2Client.dll (dLightMap.c) and D2Common.dll (D2Environment.cpp)
  * Implement Alpha-Max-Plus-Beta-Min fast Euclidean distance approximation
  * Implement 16.16 fixed-point linear falloff and obstacle attenuation
  * Implement intensity-weighted color blending with reciprocal lookup table

- P1 Core Modules:
  * LightGrid: 48x48 cell dynamic lightmap with sub-tile bilinear interpolation and RGBA8 export
  * Environment: 25Hz day/night clock, outdoor solar sine curve, Act IV targets, indoor static levels

- P1 Shader & Renderer Integration:
  * Maintain strict 10-float vertex stride (FLOATS_PER_VERTEX = 10)
  * Transform screen coordinates to sub-tiles in vertex shader for v_lightUv
  * Glide diffuse modulation in fragment shader with additive blend bypass
  * Lazy 48x48 lightmap texture allocation ensuring zero overhead for unlit contexts
  * Single-pass draw call batching maintained (drawCalls === 1)

- P1 Scene Integration & Verification:
  * Wire LightGrid and Environment into act-scene.ts
  * Add player torch with subtle flicker, missile lights, explosion flashes, and additive objects
  * Unshaded minimap overlay by resetting lighting prior to minimap.draw
  * Add comprehensive test suites: data-contract-lighting, light-grid, scene-lighting
2026-09-24 08:02:29 +00:00
..
d2kb fix(monsters): 按 d2mods.info 官方规范修正 MonLvl 与 MonStats 等级/半径/稀有度逻辑 2026-09-15 08:57:15 +00:00
LOCAL_DATA.md docs: 记录本机原版 MPQ / DLL 的持久存放位置与 /tmp 丢失教训 2026-09-17 10:51:10 +00:00
drlg-subsystem-audit-report.md docs(audit): 完成 DRLGOUTDESR 与 DRLGOUTJUNG 子系统对照审计与源码溯源标注 (Issue #86) 2026-09-18 11:17:51 +00:00
frozen-orb-skill-development-guide.md docs(skills): add frozen orb skill development guide 2026-09-23 10:33:46 +00:00
issue-386-cast-overlay-spec.md fix(ground-items): authentic ground item icon sprites and eliminate residual white dot 2026-09-23 05:48:03 +00:00
item-d2s-spec.md feat(items): 冻结物品数据结构与 .d2s 位对齐规格预留 (Issue #88) 2026-09-18 11:12:17 +00:00
lighting_reverse_engineering_113c.md feat(lighting): implement authentic Diablo II v1.13c Glide dynamic lighting system 2026-09-24 08:02:29 +00:00