FogDensityNode.h 676 B

12345678910111213141516171819202122232425262728293031323334
  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. {
  10. /// @addtogroup scene
  11. /// @{
  12. /// Fog density node.
  13. class FogDensityNode : public SceneNode
  14. {
  15. public:
  16. FogDensityNode(SceneGraph* scene, CString name);
  17. ~FogDensityNode();
  18. private:
  19. class MoveFeedbackComponent;
  20. class DensityShapeFeedbackComponent;
  21. void onMoveUpdated(const MoveComponent& movec);
  22. void onDensityShapeUpdated(const FogDensityComponent& fogc);
  23. };
  24. /// @}
  25. } // end namespace anki