ReflectionProbeNode.h 805 B

12345678910111213141516171819202122232425262728293031323334353637
  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/Math.h>
  8. namespace anki {
  9. /// @addtogroup scene
  10. /// @{
  11. /// Probe used in realtime reflections.
  12. class ReflectionProbeNode : public SceneNode
  13. {
  14. public:
  15. ReflectionProbeNode(SceneGraph* scene, CString name);
  16. ~ReflectionProbeNode();
  17. ANKI_USE_RESULT Error frameUpdate(Second prevUpdateTime, Second crntTime) override;
  18. private:
  19. class MoveFeedbackComponent;
  20. class ShapeFeedbackComponent;
  21. Array<Transform, 6> m_frustumTransforms;
  22. void onMoveUpdate(MoveComponent& move);
  23. void onShapeUpdate(ReflectionProbeComponent& reflc);
  24. };
  25. /// @}
  26. } // end namespace anki