light: add "minlight_mottle" as an alias for "minlightMottle"

This commit is contained in:
Eric Wasylishen 2023-04-02 17:48:51 -06:00
parent ab2569486d
commit a8d84ee149
2 changed files with 9 additions and 1 deletions

View File

@ -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. Set the minimum light level for any surface of the brush model.
Default 0. 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" .. bmodel-key:: "_minlight_exclude" "texname"
Faces with the given texture are excluded from receiving minlight on Faces with the given texture are excluded from receiving minlight on

View File

@ -135,7 +135,7 @@ modelinfo_t::modelinfo_t(const mbsp_t *b, const dmodelh2_t *m, float lmscale)
offset{}, offset{},
minlight{this, "minlight", 0}, minlight{this, "minlight", 0},
maxlight{this, "maxlight", 0}, maxlight{this, "maxlight", 0},
minlightMottle{this, "minlightMottle", false}, minlightMottle{this, {"minlight_mottle", "minlightMottle"}, false},
shadow{this, "shadow", 0}, shadow{this, "shadow", 0},
shadowself{this, {"shadowself", "selfshadow"}, 0}, shadowself{this, {"shadowself", "selfshadow"}, 0},
shadowworldonly{this, "shadowworldonly", 0}, shadowworldonly{this, "shadowworldonly", 0},