render parity unit H1: verbatim 40250 HTP terrain

MapOutdoorRenderHTP.cpp is the full 40250 source behind the native-terrain
gate: no invented texture-0 fallback, first-splat stage-1 ALPHAOP DISABLE,
GetNumTextures() bound, 40250 shadow-pass states (FOGCOLOR white, CLAMP,
TEXTURE1 m_matDynamicShadow). Fixes the white far-terrain band.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shenlei
2026-09-28 13:57:55 +09:00
co-authored by Claude Opus 5.5
parent 863f3771af
commit 6dffd1572a
3 changed files with 607 additions and 216 deletions
@@ -5,25 +5,25 @@
"contracts": [],
"functions": {
"CMapOutdoor::__RenderTerrain_RenderHardwareTransformPatch": {
"status": "DIVERGENT",
"status": "NEEDS_LIVE",
"impl": [
"extension/src/platform/GameLib/MapOutdoorRenderHTP.cpp:CMapOutdoor::__RenderTerrain_RenderHardwareTransformPatch"
],
"note": "Native path now follows 40250 near/mid/far patch distance bands, LOD 0/1/2, splat limit and fog-color far fill; Godot path stays adapted. Same-scene Windows color and image comparison remains open."
"note": "Verbatim 40250 body plus an early return when IsNativeTerrainRenderEnabled() is false (Godot terrain adapter path, PORT-PLAN §3). Fake-server frame: far band no longer white, layout matches the STP path; pixel parity vs a 40250 frame not verified."
},
"CMapOutdoor::__HardwareTransformPatch_RenderPatchSplat": {
"status": "DIVERGENT",
"status": "NEEDS_LIVE",
"impl": [
"extension/src/platform/GameLib/MapOutdoorRenderHTP.cpp:CMapOutdoor::__HardwareTransformPatch_RenderPatchSplat"
],
"note": "Native path draws 40250 terrain splat layers and static/character shadows; texture-0 fallback and state sequencing still differ from the reference and need matched image verification."
"note": "Verbatim 40250 (non-WORLD_EDITOR branch): no texture-0 fallback, first splat with stage-1 ALPHAOP DISABLE, GetNumTextures() bound, shadow pass FOGCOLOR white + TEXTURE1 m_matDynamicShadow; pixel parity vs a 40250 frame not verified."
},
"CMapOutdoor::__HardwareTransformPatch_RenderPatchNone": {
"status": "NEEDS_LIVE",
"impl": [
"extension/src/platform/GameLib/MapOutdoorRenderHTP.cpp:CMapOutdoor::__HardwareTransformPatch_RenderPatchNone"
],
"note": "Native path now draws the far patch with the 40250 fog texture factor; matched Windows image comparison remains open."
"note": "Verbatim 40250; drawn with the caller's TFACTOR fog fill. Pixel parity vs a 40250 frame not verified."
}
}
}