Merge pull request #77969 from clayjohn/Material-ORM-key

Hash ORM flag in BaseMaterial to differentiate between ORM and Standard materials
This commit is contained in:
Rémi Verschelde 2023-06-08 09:11:06 +02:00
commit fad61679cc
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -327,6 +327,7 @@ private:
uint64_t deep_parallax : 1;
uint64_t grow : 1;
uint64_t proximity_fade : 1;
uint64_t orm : 1;
// flag bitfield
uint32_t feature_mask;
@ -378,6 +379,7 @@ private:
mk.distance_fade = distance_fade;
mk.emission_op = emission_op;
mk.alpha_antialiasing_mode = alpha_antialiasing_mode;
mk.orm = orm;
for (int i = 0; i < FEATURE_MAX; i++) {
if (features[i]) {