PointLightComponent.h 709 B

123456789101112131415161718192021222324252627
  1. // ----------------------------------------------------------------
  2. // From Game Programming in C++ by Sanjay Madhav
  3. // Copyright (C) 2017 Sanjay Madhav. All rights reserved.
  4. //
  5. // Released under the BSD License
  6. // See LICENSE in root directory for full details.
  7. // ----------------------------------------------------------------
  8. #pragma once
  9. #include "Math.h"
  10. #include "Component.h"
  11. class PointLightComponent : public Component
  12. {
  13. public:
  14. PointLightComponent(class Actor* owner);
  15. ~PointLightComponent();
  16. // Draw this point light as geometry
  17. void Draw(class Shader* shader, class Mesh* mesh);
  18. // Diffuse color
  19. Vector3 mDiffuseColor;
  20. // Radius of light
  21. float mInnerRadius;
  22. float mOuterRadius;
  23. };