Graphics/RenderQueue: Replace AddLight method by variations
Former-commit-id: 79ad49d60bd8d397aa606cded7c0dd2d20a078dc
This commit is contained in:
@@ -6,3 +6,25 @@
|
||||
#include <Nazara/Graphics/Debug.hpp>
|
||||
|
||||
NzAbstractRenderQueue::~NzAbstractRenderQueue() = default;
|
||||
|
||||
void NzAbstractRenderQueue::AddDirectionalLight(const NzColor& color, float ambientFactor, float diffuseFactor, const NzVector3f& direction)
|
||||
{
|
||||
m_directionalLights.push_back(DirectionalLight{color, direction, ambientFactor, diffuseFactor});
|
||||
}
|
||||
|
||||
void NzAbstractRenderQueue::AddPointLight(const NzColor& color, float ambientFactor, float diffuseFactor, const NzVector3f& position, float radius, float attenuation)
|
||||
{
|
||||
m_pointLights.push_back(PointLight{color, position, ambientFactor, attenuation, diffuseFactor, radius});
|
||||
}
|
||||
|
||||
void NzAbstractRenderQueue::AddSpotLight(const NzColor& color, float ambientFactor, float diffuseFactor, const NzVector3f& position, const NzVector3f& direction, float radius, float attenuation, float innerAngle, float outerAngle)
|
||||
{
|
||||
m_spotLights.push_back(SpotLight{color, direction, position, ambientFactor, attenuation, diffuseFactor, innerAngle, outerAngle, radius});
|
||||
}
|
||||
|
||||
void NzAbstractRenderQueue::Clear(bool fully)
|
||||
{
|
||||
m_directionalLights.clear();
|
||||
m_pointLights.clear();
|
||||
m_spotLights.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user