diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-04 11:30:56 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-04 11:30:56 +0100 |
| commit | 33c6bf853e1292816882ca4df9ba2a79f8a7288a (patch) | |
| tree | a65d1112e5a1a10c3417912900442ac876c80d50 /src/world.cpp | |
| parent | Props: tint through DrawModel/DrawModelArray; drop m_clrRender writes (diff) | |
| download | hl2h-33c6bf853e1292816882ca4df9ba2a79f8a7288a.tar.gz hl2h-33c6bf853e1292816882ca4df9ba2a79f8a7288a.zip | |
Diagnose prop tinting: log prop materials and studio draw model names
Log the first crate materials the tint pass modifies and the first DrawModel/
DrawModelArray calls with their model names, to see whether the crates are
brush materials that were never reached, materials loaded after the tint was
applied, or a studio draw path that is still missed.
Diffstat (limited to '')
| -rw-r--r-- | src/world.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/world.cpp b/src/world.cpp index 0de86c6..d7023c7 100644 --- a/src/world.cpp +++ b/src/world.cpp | |||
| @@ -217,6 +217,11 @@ bool apply_tint(int world_r, int world_g, int world_b, int sky_r, int sky_g, | |||
| 217 | } else if (is_prop_material(name)) { | 217 | } else if (is_prop_material(name)) { |
| 218 | mod_fn(mat, pr, pg, pb); | 218 | mod_fn(mat, pr, pg, pb); |
| 219 | prop_hits++; | 219 | prop_hits++; |
| 220 | static int crate_logs = 0; | ||
| 221 | if (crate_logs < 8 && strstr(name, "crate")) { | ||
| 222 | crate_logs++; | ||
| 223 | logf("tint: prop material \"%s\"", name); | ||
| 224 | } | ||
| 220 | } | 225 | } |
| 221 | } | 226 | } |
| 222 | logf("tint: applied world=%d(%d,%d,%d) sky=%d(%d,%d,%d) props=%d(%d,%d,%d) " | 227 | logf("tint: applied world=%d(%d,%d,%d) sky=%d(%d,%d,%d) props=%d(%d,%d,%d) " |
