Use lcObjectProperty in Piece.

This commit is contained in:
Leonardo Zide
2023-12-28 10:21:52 -08:00
parent eeabc06c49
commit e4f4df4376
6 changed files with 55 additions and 110 deletions
+11 -11
View File
@@ -331,17 +331,17 @@ protected:
QString mName;
lcLightType mLightType = lcLightType::Point;
bool mCastShadow = true;
lcObjectProperty<lcVector3> mPosition = lcVector3(0.0f, 0.0f, 0.0f);
lcObjectProperty<lcMatrix33> mRotation = lcMatrix33Identity();
lcObjectProperty<lcVector3> mColor = lcVector3(1.0f, 1.0f, 1.0f);
lcObjectProperty<lcVector2> mSize = lcVector2(0.0f, 0.0f);
lcObjectProperty<float> mPower = 1.0f;
lcObjectProperty<float> mAttenuationDistance = 0.0f;
lcObjectProperty<float> mAttenuationPower = 0.0f;
lcObjectProperty<float> mSpotConeAngle = 80.0f;
lcObjectProperty<float> mSpotPenumbraAngle = 0.0f;
lcObjectProperty<float> mSpotTightness = 0.0f;
lcObjectProperty<lcVector2i> mAreaGrid = lcVector2i(2, 2);
lcObjectProperty<lcVector3> mPosition = lcObjectProperty<lcVector3>(lcVector3(0.0f, 0.0f, 0.0f));
lcObjectProperty<lcMatrix33> mRotation = lcObjectProperty<lcMatrix33>(lcMatrix33Identity());
lcObjectProperty<lcVector3> mColor = lcObjectProperty<lcVector3>(lcVector3(1.0f, 1.0f, 1.0f));
lcObjectProperty<lcVector2> mSize = lcObjectProperty<lcVector2>(lcVector2(0.0f, 0.0f));
lcObjectProperty<float> mPower = lcObjectProperty<float>(1.0f);
lcObjectProperty<float> mAttenuationDistance = lcObjectProperty<float>(0.0f);
lcObjectProperty<float> mAttenuationPower = lcObjectProperty<float>(0.0f);
lcObjectProperty<float> mSpotConeAngle = lcObjectProperty<float>(80.0f);
lcObjectProperty<float> mSpotPenumbraAngle = lcObjectProperty<float>(0.0f);
lcObjectProperty<float> mSpotTightness = lcObjectProperty<float>(0.0f);
lcObjectProperty<lcVector2i> mAreaGrid = lcObjectProperty<lcVector2i>(lcVector2i(2, 2));
lcLightAreaShape mAreaShape = lcLightAreaShape::Rectangle;
quint32 mState = 0;