diff options
| author | Alpaca-exe <20233126@etud.univ-evry.fr> | 2026-11-23 02:05:27 +0100 |
|---|---|---|
| committer | Alpaca-exe <20233126@etud.univ-evry.fr> | 2026-11-23 02:05:27 +0100 |
| commit | bf9a2633df08856c5beed82b78e932b2cae7d403 (patch) | |
| tree | 9ff7a132d22be427cc172c38f29715ccaaf94ce9 /docs/models.md | |
| parent | 03b09a086592a197db64d91655c6e65c30764d96 (diff) | |
gamedata_sps1: decode common.rpf SPS1 shader-preset table and join SGD5 effects
Diffstat (limited to 'docs/models.md')
| -rw-r--r-- | docs/models.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/models.md b/docs/models.md index 793ac5b0b..d177fa145 100644 --- a/docs/models.md +++ b/docs/models.md | |||
| @@ -504,6 +504,11 @@ Names are per model and a building holds glass, decal and opaque shaders alike, | |||
| 504 | in absolute terms; the enrichment against bucket 0 is the signal. For export: bucket 1 needs blending, 2 is | 504 | in absolute terms; the enrichment against bucket 0 is the signal. For export: bucket 1 needs blending, 2 is |
| 505 | a projected decal, 3 needs alpha testing, 6 is a water surface. | 505 | a projected decal, 3 needs alpha testing, 6 is a water surface. |
| 506 | 506 | ||
| 507 | `common.rpf` carries the matching preset-to-effect table (`SPS1`, decoded by `tools/gamedata_sps1.py`, | ||
| 508 | [`gamedata.md`](gamedata.md#sps1-shader-preset-table)): `858` `.sps` presets map onto `539` `SGD5` Database 0 effects | ||
| 509 | with a default `u8` render bucket (`0..7`), `63` effects accept multiple buckets, and the single bucket-`4` | ||
| 510 | and bucket-`5` presets both resolve to effect `fc34f08b`. | ||
| 511 | |||
| 507 | ## Material shader hashes and the carved programs | 512 | ## Material shader hashes and the carved programs |
| 508 | 513 | ||
| 509 | `rpf9dump` also writes each material's shader hash (`manifest.json` → `Materials[].Shader`, u32 as 8 hex digits). | 514 | `rpf9dump` also writes each material's shader hash (`manifest.json` → `Materials[].Shader`, u32 as 8 hex digits). |