Add a hidden "Fade" property that modifies the effective opacity to enable other functionality (closes #1970)

This commit is contained in:
Alexander Bock
2022-04-05 23:53:33 +02:00
parent 73292ee54c
commit 02adcf570e
32 changed files with 79 additions and 36 deletions
+4
View File
@@ -105,6 +105,7 @@ public:
protected:
properties::BoolProperty _enabled;
properties::FloatProperty _opacity;
properties::FloatProperty _fade;
properties::StringProperty _renderableType;
void setBoundingSphere(double boundingSphere);
@@ -113,6 +114,9 @@ protected:
void setRenderBinFromOpacity();
void registerUpdateRenderBinFromOpacity();
/// Returns the full opacity constructed from the _opactiy and _fade property values
float opacity() const;
double _boundingSphere = 0.0;
double _interactionSphere = 0.0;
SceneGraphNode* _parent = nullptr;