summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelface.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2022-09-23 11:19:56 -0500
committerDave Parks <davep@lindenlab.com>2022-09-23 11:19:56 -0500
commit8f1d22686551f4d6783d03cd3685085ed7fcb96c (patch)
tree09dd1c2a7c13a433e8756080638448624281a86c /indra/newview/llpanelface.cpp
parent01d667109159666150816ff728fa941d2fb54299 (diff)
SL-18134 Rename Albedo to Base Color to be more consistent with GLTF spec
Diffstat (limited to 'indra/newview/llpanelface.cpp')
-rw-r--r--indra/newview/llpanelface.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/indra/newview/llpanelface.cpp b/indra/newview/llpanelface.cpp
index f7eff39da7..a4a91baad8 100644
--- a/indra/newview/llpanelface.cpp
+++ b/indra/newview/llpanelface.cpp
@@ -105,7 +105,7 @@ const S32 MATTYPE_SPECULAR = 2; // Specular map
const S32 ALPHAMODE_MASK = 2; // Alpha masking mode
const S32 BUMPY_TEXTURE = 18; // use supplied normal map
const S32 SHINY_TEXTURE = 4; // use supplied specular map
-const S32 PBRTYPE_ALBEDO = 0; // PBR Albedo
+const S32 PBRTYPE_BASE_COLOR = 0; // PBR Base Color
const S32 PBRTYPE_NORMAL = 1; // PBR Normal
const S32 PBRTYPE_METALLIC = 2; // PBR Metallic
@@ -344,7 +344,7 @@ BOOL LLPanelFace::postBuild()
if (radio_pbr_type)
{
radio_pbr_type->setCommitCallback(LLPanelFace::onCommitPbrType, this);
- radio_pbr_type->selectNthItem(PBRTYPE_ALBEDO);
+ radio_pbr_type->selectNthItem(PBRTYPE_BASE_COLOR);
}
mCtrlGlow = getChild<LLSpinCtrl>("glow");
@@ -897,9 +897,9 @@ void LLPanelFace::updateUI(bool force_set_values /*false*/)
radio_mat_type->setEnabled(editable);
LLRadioGroup* radio_pbr_type = getChild<LLRadioGroup>("radio_pbr_type");
- if (radio_pbr_type->getSelectedIndex() < PBRTYPE_ALBEDO)
+ if (radio_pbr_type->getSelectedIndex() < PBRTYPE_BASE_COLOR)
{
- radio_pbr_type->selectNthItem(PBRTYPE_ALBEDO);
+ radio_pbr_type->selectNthItem(PBRTYPE_BASE_COLOR);
}
radio_pbr_type->setEnabled(editable);
@@ -2570,7 +2570,7 @@ void LLPanelFace::updateVisibility()
bool show_texture = (show_media || (show_material && (material_type == MATTYPE_DIFFUSE) && mComboMatMedia->getEnabled()));
bool show_bumpiness = show_material && (material_type == MATTYPE_NORMAL) && mComboMatMedia->getEnabled();
bool show_shininess = show_material && (material_type == MATTYPE_SPECULAR) && mComboMatMedia->getEnabled();
- bool show_pbr_albedo = show_pbr && (pbr_type == PBRTYPE_ALBEDO) && mComboMatMedia->getEnabled();
+ bool show_pbr_base_color = show_pbr && (pbr_type == PBRTYPE_BASE_COLOR) && mComboMatMedia->getEnabled();
bool show_pbr_normal = show_pbr && (pbr_type == PBRTYPE_NORMAL) && mComboMatMedia->getEnabled();
bool show_pbr_metallic = show_pbr && (pbr_type == PBRTYPE_METALLIC) && mComboMatMedia->getEnabled();
@@ -2594,11 +2594,11 @@ void LLPanelFace::updateVisibility()
updateAlphaControls();
}
// texture scale and position controls are shared between bpr and non-pbr textures
- getChildView("TexScaleU")->setVisible(show_texture || show_pbr_albedo);
- getChildView("TexScaleV")->setVisible(show_texture || show_pbr_albedo);
- getChildView("TexRot")->setVisible(show_texture || show_pbr_albedo);
- getChildView("TexOffsetU")->setVisible(show_texture || show_pbr_albedo);
- getChildView("TexOffsetV")->setVisible(show_texture || show_pbr_albedo);
+ getChildView("TexScaleU")->setVisible(show_texture || show_pbr_base_color);
+ getChildView("TexScaleV")->setVisible(show_texture || show_pbr_base_color);
+ getChildView("TexRot")->setVisible(show_texture || show_pbr_base_color);
+ getChildView("TexOffsetU")->setVisible(show_texture || show_pbr_base_color);
+ getChildView("TexOffsetV")->setVisible(show_texture || show_pbr_base_color);
// Specular map controls
getChildView("shinytexture control")->setVisible(show_shininess);