summaryrefslogtreecommitdiff
path: root/indra/llprimitive/llmaterial.cpp
diff options
context:
space:
mode:
authorEuclid Linden <euclid@lindenlab.com>2021-05-26 18:53:28 +0000
committerEuclid Linden <euclid@lindenlab.com>2021-05-26 18:53:28 +0000
commit4cb5d10a3fe746ce5eb41da355ebceaebc460f26 (patch)
treeea062b13c8e53ca8d040d6377d0e40d28070c654 /indra/llprimitive/llmaterial.cpp
parent272da688f75880f73e227ae62bad1c5a9b28b288 (diff)
parent7199ce45142f47003ba04381a76c1a4c7545f127 (diff)
Merged in euclid-15299 (pull request #580)
SL-15299 SL-15313 BUG-230802 Revert BOM fix causing issues with avatar alpha masks. Approved-by: Andrey Kleshchev
Diffstat (limited to 'indra/llprimitive/llmaterial.cpp')
-rw-r--r--indra/llprimitive/llmaterial.cpp40
1 files changed, 1 insertions, 39 deletions
diff --git a/indra/llprimitive/llmaterial.cpp b/indra/llprimitive/llmaterial.cpp
index a1bfc4edd9..a219ac1450 100644
--- a/indra/llprimitive/llmaterial.cpp
+++ b/indra/llprimitive/llmaterial.cpp
@@ -28,8 +28,6 @@
#include "llmaterial.h"
-#include "../llrender/llglheaders.h"
-
/**
* Materials cap parameters
*/
@@ -107,8 +105,6 @@ LLMaterial::LLMaterial()
, mSpecularLightExponent(LLMaterial::DEFAULT_SPECULAR_LIGHT_EXPONENT)
, mEnvironmentIntensity(LLMaterial::DEFAULT_ENV_INTENSITY)
, mDiffuseAlphaMode(LLMaterial::DIFFUSE_ALPHA_MODE_BLEND)
- , mDiffuseFormatPrimary(GL_RGBA)
- , mDiffuseBaked(false)
, mAlphaMaskCutoff(0)
{
}
@@ -315,20 +311,6 @@ void LLMaterial::setEnvironmentIntensity(U8 intensity)
mEnvironmentIntensity = intensity;
}
-U8 LLMaterial::getDiffuseAlphaModeRender() const
-{
- if (mDiffuseBaked
- || mDiffuseFormatPrimary == GL_RGBA
- || mDiffuseFormatPrimary == GL_ALPHA)
- {
- return mDiffuseAlphaMode;
- }
- else
- {
- return DIFFUSE_ALPHA_MODE_NONE;
- }
-}
-
U8 LLMaterial::getDiffuseAlphaMode() const
{
return mDiffuseAlphaMode;
@@ -339,26 +321,6 @@ void LLMaterial::setDiffuseAlphaMode(U8 alpha_mode)
mDiffuseAlphaMode = alpha_mode;
}
-U32 LLMaterial::getDiffuseFormatPrimary() const
-{
- return mDiffuseFormatPrimary;
-}
-
-void LLMaterial::setDiffuseFormatPrimary(U32 format_primary)
-{
- mDiffuseFormatPrimary = format_primary;
-}
-
-bool LLMaterial::getIsDiffuseBaked() const
-{
- return mDiffuseBaked;
-}
-
-void LLMaterial::setDiffuseBaked(bool baked)
-{
- mDiffuseBaked = baked;
-}
-
U8 LLMaterial::getAlphaMaskCutoff() const
{
return mAlphaMaskCutoff;
@@ -475,7 +437,7 @@ U32 LLMaterial::getShaderMask(U32 alpha_mode)
}
else
{
- ret = getDiffuseAlphaModeRender();
+ ret = getDiffuseAlphaMode();
}
llassert(ret < SHADER_COUNT);