From 94c3eacb726181a35294a36f18d32e7a1d919d53 Mon Sep 17 00:00:00 2001 From: maj00r Date: Wed, 14 Oct 2026 22:28:52 +0200 Subject: [PATCH] fix(tools): water keeps its large param_specular as the glint of the sun on its fixed mirror and is only reported as information; the norm says which files are checked, that textures without a material go on their diffuse alone, and that diffuse, specgloss and normal maps all become BC7 made from the TGA --- tools/materials/README.md | 4 +++- tools/materials/validate_materials.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/materials/README.md b/tools/materials/README.md index 8009a923..2a6ce3b3 100644 --- a/tools/materials/README.md +++ b/tools/materials/README.md @@ -80,6 +80,8 @@ python3 tools/materials/validate_materials.py ~/pctga dynamic --fallback PARAM_SPECULAR_MAX: + if ps is not None and ps > PARAM_SPECULAR_MAX and shadername.lower().startswith('water'): + add(INFO, 'param_specular %g w shaderze %s: odblask slonca na lustrze wody, poza norma' % (ps, shadername)) + elif ps is not None and ps > PARAM_SPECULAR_MAX: add(ERROR if ps > 2 * PARAM_SPECULAR_MAX else WARN, 'param_specular %g mnozy polysk %gx (norma 1, sile niesie R; w starszych shaderach rozjasnia tez w reflektorach)' % (ps, ps)) psv = ps if ps is not None else 1.0