Hash ORM flag in BaseMaterial to differentiate between ORM and Standard materials

This commit is contained in:
clayjohn 2023-06-07 09:31:34 -07:00
parent d984ad64d4
commit 86550ea3c5
1 changed files with 2 additions and 0 deletions

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]) {