Castor3D 0.15.0
Multiplatform 3D engine
|
#include <SpotLight.hpp>
Classes | |
struct | LightData |
Fonctions membres publiques | |
C3D_API void | update () override |
Met la source à jour. | |
C3D_API void | updateShadow (Camera &lightCamera, int32_t index) |
Met à jour les information d'ombre. | |
Mutateurs. | |
C3D_API void | setAttenuation (castor::Point3f const &value) |
C3D_API void | setExponent (float value) |
C3D_API void | setInnerCutOff (castor::Angle const &value) |
C3D_API void | setOuterCutOff (castor::Angle const &value) |
Accesseurs. | |
castor::Point3f const & | getDirection () const |
castor::Matrix4x4f const & | getViewMatrix () const |
castor::Matrix4x4f const & | getProjectionMatrix () const |
castor::Matrix4x4f const & | getLightSpaceTransform () const |
castor::Point3f const & | getAttenuation () const |
float | getExponent () const |
castor::Angle const & | getInnerCutOff () const |
castor::Angle const & | getOuterCutOff () const |
Fonctions membres publiques hérités de castor3d::LightCategory | |
virtual C3D_API | ~LightCategory ()=default |
Destructeur. | |
virtual C3D_API void | update ()=0 |
Met la source à jour. | |
C3D_API void | fillBuffer (castor::Point4f *data) const |
Met la lumière dans la texture donnée. | |
C3D_API uint32_t | getVolumetricSteps () const |
C3D_API float | getVolumetricScatteringFactor () const |
C3D_API castor::Point2f const & | getShadowRawOffsets () const |
C3D_API castor::Point2f const & | getShadowPcfOffsets () const |
C3D_API float | getVsmMinVariance () const |
C3D_API float | getVsmLightBleedingReduction () const |
C3D_API castor::RangedValue< uint32_t > | getShadowPcfFilterSize () const |
C3D_API castor::RangedValue< uint32_t > | getShadowPcfSampleCount () const |
C3D_API ShadowConfig const & | getShadowConfig () const |
C3D_API RsmConfig const & | getRsmConfig () const |
C3D_API LpvConfig const & | getLpvConfig () const |
LightType | getLightType () const |
float | getDiffuseIntensity () const |
float | getSpecularIntensity () const |
castor::Point2f const & | getIntensity () const |
float | getFarPlane () const |
castor::Point3f const & | getColour () const |
Light const & | getLight () const |
castor::BoundingBox const & | getBoundingBox () const |
C3D_API void | setVolumetricSteps (uint32_t value) |
C3D_API void | setVolumetricScatteringFactor (float value) |
C3D_API void | setRawMinOffset (float value) |
C3D_API void | setRawMaxSlopeOffset (float value) |
C3D_API void | setPcfMinOffset (float value) |
C3D_API void | setPcfMaxSlopeOffset (float value) |
C3D_API void | setPcfFilterSize (uint32_t value) |
C3D_API void | setPcfSampleCount (uint32_t value) |
C3D_API void | setVsmMinVariance (float value) |
C3D_API void | setVsmLightBleedingReduction (float value) |
C3D_API void | setColour (castor::Point3f const &value) |
C3D_API void | setIntensity (castor::Point2f const &value) |
C3D_API void | setDiffuseIntensity (float value) |
C3D_API void | setSpecularIntensity (float value) |
Light & | getLight () |
castor::Point3f & | getColour () |
castor::Point2f & | getIntensity () |
Fonctions membres publiques statiques | |
static C3D_API LightCategoryUPtr | create (Light &light) |
Fonction de création utilisée par Factory. | |
static C3D_API castor::Point3fArray const & | generateVertices (uint32_t angle) |
Attributs publics statiques | |
static constexpr uint32_t | LightDataSize = uint32_t( ashes::getAlignedSize( sizeof( LightData ), 4u ) ) |
static constexpr uint32_t | LightDataComponents = LightDataSize / ( 4u * sizeof( float ) ) |
Amis | |
class | Scene |
Membres hérités additionnels | |
Fonctions membres protégées hérités de castor3d::LightCategory | |
C3D_API | LightCategory (LightType lightType, Light &light) |
Constructeur. | |
Attributs protégés hérités de castor3d::LightCategory | |
castor::BoundingBox | m_cubeBox |
float | m_farPlane { 1.0f } |
Fonction de création utilisée par Factory.
[in] | light | La Light parente. |
|
static |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
C3D_API void castor3d::SpotLight::setAttenuation | ( | castor::Point3f const & | value | ) |
C3D_API void castor3d::SpotLight::setExponent | ( | float | value | ) |
C3D_API void castor3d::SpotLight::setInnerCutOff | ( | castor::Angle const & | value | ) |
C3D_API void castor3d::SpotLight::setOuterCutOff | ( | castor::Angle const & | value | ) |
|
overridevirtual |
Met la source à jour.
Implémente castor3d::LightCategory.
Met à jour les information d'ombre.
[in,out] | lightCamera | La caméra qui reçoit les données de spot de la lumière. |
[in] | index | L'indice de la shadow map. |
|
friend |
|
staticconstexpr |
|
staticconstexpr |