summaryrefslogtreecommitdiff
path: root/indra/llprimitive/llgltfmaterial.h
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2022-06-28 15:15:57 -0500
committerDave Parks <davep@lindenlab.com>2022-06-28 15:15:57 -0500
commit57805cac68bbc67ecb8a8e76c0ced2ce9b622dd1 (patch)
treecdc7d029f5375d6c33d6ffc73db6400cebe1baa5 /indra/llprimitive/llgltfmaterial.h
parentcc535ecccc3c415655a52cc597b33102e5ea21db (diff)
SL-17379 More complete integration of material asset type
Diffstat (limited to 'indra/llprimitive/llgltfmaterial.h')
-rw-r--r--indra/llprimitive/llgltfmaterial.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/llprimitive/llgltfmaterial.h b/indra/llprimitive/llgltfmaterial.h
index 2df4883a3c..d6f59cd1a3 100644
--- a/indra/llprimitive/llgltfmaterial.h
+++ b/indra/llprimitive/llgltfmaterial.h
@@ -83,6 +83,16 @@ public:
mAlphaMode = ALPHA_MODE_OPAQUE;
}
}
+
+ const char* getAlphaMode()
+ {
+ switch (mAlphaMode)
+ {
+ case ALPHA_MODE_MASK: return "MASK";
+ case ALPHA_MODE_BLEND: return "BLEND";
+ default: return "OPAQUE";
+ }
+ }
};