diff options
| author | Ptolemy <ptolemy@lindenlab.com> | 2022-09-02 16:12:49 -0700 |
|---|---|---|
| committer | Ptolemy <ptolemy@lindenlab.com> | 2022-09-02 16:12:49 -0700 |
| commit | 7229dfcc59943f025219721701b2bda471a2ae25 (patch) | |
| tree | 99d9a93c3e7e32aff2c851b2a627d41ec8daa8f5 /indra/newview/llmaterialeditor.cpp | |
| parent | 7bb5315847f6ad68927efac9914bee3bb81bb894 (diff) | |
SL-17701: PBR: Add support for gltf Alpha MASK (cutoff)
Diffstat (limited to 'indra/newview/llmaterialeditor.cpp')
| -rw-r--r-- | indra/newview/llmaterialeditor.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/llmaterialeditor.cpp b/indra/newview/llmaterialeditor.cpp index 5acf0600b6..6461aa71a6 100644 --- a/indra/newview/llmaterialeditor.cpp +++ b/indra/newview/llmaterialeditor.cpp @@ -1574,6 +1574,7 @@ void LLMaterialEditor::getGLTFMaterial(LLGLTFMaterial* mat) mat->mDoubleSided = getDoubleSided(); mat->setAlphaMode(getAlphaMode()); + mat->mAlphaCutoff = getAlphaCutoff(); } void LLMaterialEditor::setFromGLTFMaterial(LLGLTFMaterial* mat) @@ -1591,6 +1592,7 @@ void LLMaterialEditor::setFromGLTFMaterial(LLGLTFMaterial* mat) setDoubleSided(mat->mDoubleSided); setAlphaMode(mat->getAlphaMode()); + setAlphaCutoff(mat->mAlphaCutoff); } void LLMaterialEditor::loadAsset() |
