X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-scene3d%2Finternal%2Fcontrols%2Fmodel%2Fmodel-impl.h;h=d82fa8fcddeea76a4f50a907d54f2261af7046d4;hb=7892a19ca3a420eb54bcafa007d82bb5fe44c55c;hp=5a9633bffa6f0a526d9bb92e07d52d288bd3c8a9;hpb=5c75b9376dd7577a927e9aad797479e1cd831e11;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-scene3d/internal/controls/model/model-impl.h b/dali-scene3d/internal/controls/model/model-impl.h index 5a9633b..d82fa8f 100644 --- a/dali-scene3d/internal/controls/model/model-impl.h +++ b/dali-scene3d/internal/controls/model/model-impl.h @@ -174,6 +174,26 @@ public: void SetMotionData(Scene3D::MotionData motionData); /** + * @copydoc Model::CastShadow() + */ + void CastShadow(bool castShadow); + + /** + * @copydoc Model::IsShadowCasting() + */ + bool IsShadowCasting() const; + + /** + * @copydoc Model::ReceiveShadow() + */ + void ReceiveShadow(bool receiveShadow); + + /** + * @copydoc Model::IsShadowReceiving() + */ + bool IsShadowReceiving() const; + + /** * @copydoc Scene3D::Model::MeshHitSignal() */ Scene3D::Model::MeshHitSignalType& MeshHitSignal() @@ -295,6 +315,16 @@ private: void FitModelPosition(); /** + * @brief Makes the input node cast shadow or not. + */ + void UpdateCastShadowRecursively(Scene3D::ModelNode node, bool castShadow); + + /** + * @brief Makes the input node receive shadow or not. + */ + void UpdateReceiveShadowRecursively(Scene3D::ModelNode node, bool receiveShadow); + + /** * @brief Changes IBL information of the input node. */ void UpdateImageBasedLightTextureRecursively(Scene3D::ModelNode node, Dali::Texture diffuseTexture, Dali::Texture specularTexture, float iblScaleFactor, uint32_t specularMipmapLevels); @@ -444,6 +474,8 @@ private: bool mIblSpecularResourceReady; bool mIblDiffuseDirty; bool mIblSpecularDirty; + bool mIsShadowCasting; + bool mIsShadowReceiving; }; } // namespace Internal