mirror of
https://github.com/barkeser2002/flower.git
synced 2026-09-25 19:36:20 +03:00
33 lines
728 B
C++
33 lines
728 B
C++
#pragma once
|
|
#include "Light.h"
|
|
|
|
namespace Flower
|
|
{
|
|
class SpotLightComponent : public LightComponent
|
|
{
|
|
ARCHIVE_DECLARE;
|
|
|
|
#pragma region SerializeField
|
|
////////////////////////////// Serialize area //////////////////////////////
|
|
public:
|
|
bool bCastShadow = true; // If cast shadow, it will be an importance spot light.
|
|
float innerCone = 0.0f;
|
|
float outerCone = glm::pi<float>() * 0.5f;
|
|
float range = 100.0f;
|
|
|
|
////////////////////////////// Serialize area //////////////////////////////
|
|
#pragma endregion SerializeField
|
|
|
|
public:
|
|
SpotLightComponent() = default;
|
|
virtual ~SpotLightComponent() = default;
|
|
|
|
SpotLightComponent(std::shared_ptr<SceneNode> sceneNode)
|
|
: LightComponent(sceneNode)
|
|
{
|
|
|
|
}
|
|
};
|
|
}
|
|
|