From a8d84ee149a78846679fbc67c521bad51945994b Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Sun, 2 Apr 2023 17:48:51 -0600 Subject: [PATCH] light: add "minlight_mottle" as an alias for "minlightMottle" --- docs/light.rst | 8 ++++++++ light/light.cc | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/light.rst b/docs/light.rst index 8411ba14..cbf4a896 100644 --- a/docs/light.rst +++ b/docs/light.rst @@ -376,6 +376,14 @@ func_detail/func_group as well, if qbsp from these tools is used. Set the minimum light level for any surface of the brush model. Default 0. + .. note:: Q2 uses a 0..1 scale for this key + +.. bmodel-key:: "_minlight_mottle" "n" + "_minlightMottle" "n" + + Whether minlight should have a mottled pattern. Defaults + to 1 in Q2 mode and 0 otherwise. + .. bmodel-key:: "_minlight_exclude" "texname" Faces with the given texture are excluded from receiving minlight on diff --git a/light/light.cc b/light/light.cc index 27b1d14c..1cda7549 100644 --- a/light/light.cc +++ b/light/light.cc @@ -135,7 +135,7 @@ modelinfo_t::modelinfo_t(const mbsp_t *b, const dmodelh2_t *m, float lmscale) offset{}, minlight{this, "minlight", 0}, maxlight{this, "maxlight", 0}, - minlightMottle{this, "minlightMottle", false}, + minlightMottle{this, {"minlight_mottle", "minlightMottle"}, false}, shadow{this, "shadow", 0}, shadowself{this, {"shadowself", "selfshadow"}, 0}, shadowworldonly{this, "shadowworldonly", 0},