FogDensityNode.h 676 B

123456789101112131415161718192021222324252627282930313233
  1. // Copyright (C) 2009-2021, Panagiotis Christopoulos Charitos and contributors.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. #pragma once
  6. #include <AnKi/Scene/SceneNode.h>
  7. #include <AnKi/Collision/Aabb.h>
  8. namespace anki {
  9. /// @addtogroup scene
  10. /// @{
  11. /// Fog density node.
  12. class FogDensityNode : public SceneNode
  13. {
  14. public:
  15. FogDensityNode(SceneGraph* scene, CString name);
  16. ~FogDensityNode();
  17. private:
  18. class MoveFeedbackComponent;
  19. class DensityShapeFeedbackComponent;
  20. void onMoveUpdated(const MoveComponent& movec);
  21. void onDensityShapeUpdated(const FogDensityComponent& fogc);
  22. };
  23. /// @}
  24. } // end namespace anki