From 33c6bf853e1292816882ca4df9ba2a79f8a7288a Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 4 Nov 2026 11:30:56 +0100 Subject: 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. --- src/world.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/world.cpp') 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, } else if (is_prop_material(name)) { mod_fn(mat, pr, pg, pb); prop_hits++; + static int crate_logs = 0; + if (crate_logs < 8 && strstr(name, "crate")) { + crate_logs++; + logf("tint: prop material \"%s\"", name); + } } } logf("tint: applied world=%d(%d,%d,%d) sky=%d(%d,%d,%d) props=%d(%d,%d,%d) " -- cgit v1.2.3