From 86550ea3c5a79f10db228d1ac0df459989ebf9b4 Mon Sep 17 00:00:00 2001 From: clayjohn Date: Wed, 7 Jun 2023 09:31:34 -0700 Subject: [PATCH] Hash ORM flag in BaseMaterial to differentiate between ORM and Standard materials --- scene/resources/material.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scene/resources/material.h b/scene/resources/material.h index 677ddf30d88..28ceb1f1194 100644 --- a/scene/resources/material.h +++ b/scene/resources/material.h @@ -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]) {