mirror of
https://github.com/barkeser2002/flower.git
synced 2026-09-25 20:17:06 +03:00
28 lines
519 B
C++
28 lines
519 B
C++
#include "sky.h"
|
|
|
|
|
|
namespace engine
|
|
{
|
|
SkyComponent::SkyComponent(std::shared_ptr<SceneNode> sceneNode)
|
|
: LightComponent(sceneNode)
|
|
{
|
|
init();
|
|
}
|
|
|
|
bool SkyComponent::setCascadeConfig(const CascadeShadowConfig& newValue)
|
|
{
|
|
if (newValue != m_cascadeConfig)
|
|
{
|
|
m_cascadeConfig = newValue;
|
|
markDirty();
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
}
|
|
void SkyComponent::init()
|
|
{
|
|
m_color = temperature2Color(6500.0f);
|
|
}
|
|
}
|