-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathPointLightActor.h
More file actions
33 lines (29 loc) · 788 Bytes
/
Copy pathPointLightActor.h
File metadata and controls
33 lines (29 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef GAME_ENGINE_POINT_LIGHT_ACTOR
#define GAME_ENGINE_POINT_LIGHT_ACTOR
#include "LightActor.h"
#include "CoreLib/VectorMath.h"
namespace GameEngine
{
class PointLightActor : public LightActor
{
protected:
virtual Mesh CreateGizmoMesh() override;
public:
PROPERTY_DEF(bool, EnableShadows, false);
PROPERTY_DEF(float, Radius, 2000.0f);
PROPERTY_DEF(float, DecayDistance90Percent, 1200.0f);
PROPERTY_DEF(bool, IsSpotLight, false);
PROPERTY_DEF(VectorMath::Vec3, Color, VectorMath::Vec3::Create(1.0f, 1.0f, 1.0f));
PROPERTY_DEF(float, SpotLightStartAngle, 0.0f);
PROPERTY_DEF(float, SpotLightEndAngle, 0.0f);
virtual CoreLib::String GetTypeName() override
{
return "PointLight";
}
PointLightActor()
{
lightType = LightType::Point;
}
};
}
#endif