summaryrefslogtreecommitdiff
path: root/indra/newview/llmaterialeditor.h
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2022-06-15 17:03:38 -0500
committerDave Parks <davep@lindenlab.com>2022-06-15 17:03:38 -0500
commitf5d66e79eec07384ef6f4fd3f516f7a9d010fb9e (patch)
tree88a67165f924949c77f0c9ba00408c831f08fb41 /indra/newview/llmaterialeditor.h
parentad533fcd6b1a3433273fa6d75e19a7ce56c75867 (diff)
SL-17605 WIP - Upload->Material now lets you pick a GLTF file and imports the first material in the GLTF file to the Material Editor
Diffstat (limited to 'indra/newview/llmaterialeditor.h')
-rw-r--r--indra/newview/llmaterialeditor.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/indra/newview/llmaterialeditor.h b/indra/newview/llmaterialeditor.h
index febdb3bbc1..f0c5dca44d 100644
--- a/indra/newview/llmaterialeditor.h
+++ b/indra/newview/llmaterialeditor.h
@@ -33,26 +33,49 @@ class LLMaterialEditor : public LLFloater
public:
LLMaterialEditor(const LLSD& key);
+ // open a file dialog and select a gltf/glb file for import
+ void importMaterial();
+
void onClickSave();
// llpanel
BOOL postBuild() override;
LLUUID getAlbedoId();
+ void setAlbedoId(const LLUUID& id);
+
LLColor4 getAlbedoColor();
+
+ // sets both albedo color and transparency
+ void setAlbedoColor(const LLColor4& color);
+
F32 getTransparency();
+
std::string getAlphaMode();
+ void setAlphaMode(const std::string& alpha_mode);
+
F32 getAlphaCutoff();
+ void setAlphaCutoff(F32 alpha_cutoff);
LLUUID getMetallicRoughnessId();
+ void setMetallicRoughnessId(const LLUUID& id);
+
F32 getMetalnessFactor();
+ void setMetalnessFactor(F32 factor);
+
F32 getRoughnessFactor();
+ void setRoughnessFactor(F32 factor);
LLUUID getEmissiveId();
+ void setEmissiveId(const LLUUID& id);
+
LLColor4 getEmissiveColor();
+ void setEmissiveColor(const LLColor4& color);
LLUUID getNormalId();
+ void setNormalId(const LLUUID& id);
bool getDoubleSided();
+ void setDoubleSided(bool double_sided);
};