Castor3D 0.15.0
Multiplatform 3D engine
Fonctions membres publiques | Attributs publics statiques | Liste de tous les membres
Référence de la classe castor3d::shader::Shadow

#include <GlslShadow.hpp>

Fonctions membres publiques

C3D_API Shadow (ShadowOptions shadowOptions, sdw::ShaderWriter &writer)
 
C3D_API void declare (uint32_t &index, uint32_t set)
 
C3D_API void declareDirectional (uint32_t &index, uint32_t set)
 
C3D_API void declarePoint (uint32_t &index, uint32_t set)
 
C3D_API void declareSpot (uint32_t &index, uint32_t set)
 
C3D_API sdw::Float computeDirectional (shader::ShadowData const &shadows, sdw::Vec3 const &wsVertexToLight, sdw::Vec3 const &wsNormal, sdw::Vec3 const &wsPosition, sdw::Mat4 const &lightMatrix, sdw::UInt const &cascadeIndex, sdw::UInt const &maxCascade)
 
C3D_API sdw::Float computeDirectional (shader::ShadowData const &light, LightSurface const &lightSurface, sdw::Mat4 const &lightMatrix, sdw::UInt const &cascadeIndex, sdw::UInt const &maxCascade)
 
C3D_API sdw::Float computeSpot (shader::ShadowData const &light, LightSurface const &lightSurface, sdw::Mat4 const &lightMatrix, sdw::Float const &depth)
 
C3D_API sdw::Float computePoint (shader::ShadowData const &light, LightSurface const &lightSurface, sdw::Float const &depth)
 
C3D_API sdw::Float computeVolumetric (shader::ShadowData const &light, LightSurface const &lightSurface, sdw::Mat4 const &lightMatrix, sdw::UInt const &cascadeIndex, sdw::UInt const &maxCascade)
 
C3D_API sdw::Float computeVolumetric (shader::ShadowData const &light, LightSurface const &lightSurface, sdw::Mat4 const &lightMatrix, sdw::UInt const &cascadeIndex, sdw::UInt const &maxCascade, sdw::Float const &scattering)
 
C3D_API sdw::Float computeVolumetric (shader::ShadowData const &light, LightSurface const &lightSurface, Ray const &ray, sdw::Float const &stepLength, sdw::Mat4 const &lightMatrix, sdw::UInt const &cascadeIndex, sdw::UInt const &maxCascade, sdw::Float const &scattering)
 
C3D_API sdw::Vec4 getLightSpacePosition (sdw::Mat4 const &lightMatrix, sdw::Vec3 const &worldSpacePosition)
 
bool isEnabled () const
 

Attributs publics statiques

static C3D_API castor::String const MapDepthDirectional
 
static C3D_API castor::String const MapDepthSpot
 
static C3D_API castor::String const MapDepthPoint
 
static C3D_API castor::String const MapDepthCmpDirectional
 
static C3D_API castor::String const MapDepthCmpSpot
 
static C3D_API castor::String const MapDepthCmpPoint
 
static C3D_API castor::String const MapVarianceDirectional
 
static C3D_API castor::String const MapVarianceSpot
 
static C3D_API castor::String const MapVariancePoint
 
static C3D_API castor::String const MapNormalDirectional
 
static C3D_API castor::String const MapNormalSpot
 
static C3D_API castor::String const MapNormalPoint
 
static C3D_API castor::String const MapPositionDirectional
 
static C3D_API castor::String const MapPositionSpot
 
static C3D_API castor::String const MapPositionPoint
 
static C3D_API castor::String const MapFluxDirectional
 
static C3D_API castor::String const MapFluxSpot
 
static C3D_API castor::String const MapFluxPoint
 
static C3D_API castor::String const RandomBuffer
 

Documentation des constructeurs et destructeur

◆ Shadow()

C3D_API castor3d::shader::Shadow::Shadow ( ShadowOptions  shadowOptions,
sdw::ShaderWriter &  writer 
)

Documentation des fonctions membres

◆ computeDirectional() [1/2]

C3D_API sdw::Float castor3d::shader::Shadow::computeDirectional ( shader::ShadowData const &  light,
LightSurface const &  lightSurface,
sdw::Mat4 const &  lightMatrix,
sdw::UInt const &  cascadeIndex,
sdw::UInt const &  maxCascade 
)

◆ computeDirectional() [2/2]

C3D_API sdw::Float castor3d::shader::Shadow::computeDirectional ( shader::ShadowData const &  shadows,
sdw::Vec3 const &  wsVertexToLight,
sdw::Vec3 const &  wsNormal,
sdw::Vec3 const &  wsPosition,
sdw::Mat4 const &  lightMatrix,
sdw::UInt const &  cascadeIndex,
sdw::UInt const &  maxCascade 
)

◆ computePoint()

C3D_API sdw::Float castor3d::shader::Shadow::computePoint ( shader::ShadowData const &  light,
LightSurface const &  lightSurface,
sdw::Float const &  depth 
)

◆ computeSpot()

C3D_API sdw::Float castor3d::shader::Shadow::computeSpot ( shader::ShadowData const &  light,
LightSurface const &  lightSurface,
sdw::Mat4 const &  lightMatrix,
sdw::Float const &  depth 
)

◆ computeVolumetric() [1/3]

C3D_API sdw::Float castor3d::shader::Shadow::computeVolumetric ( shader::ShadowData const &  light,
LightSurface const &  lightSurface,
Ray const &  ray,
sdw::Float const &  stepLength,
sdw::Mat4 const &  lightMatrix,
sdw::UInt const &  cascadeIndex,
sdw::UInt const &  maxCascade,
sdw::Float const &  scattering 
)

◆ computeVolumetric() [2/3]

C3D_API sdw::Float castor3d::shader::Shadow::computeVolumetric ( shader::ShadowData const &  light,
LightSurface const &  lightSurface,
sdw::Mat4 const &  lightMatrix,
sdw::UInt const &  cascadeIndex,
sdw::UInt const &  maxCascade 
)

◆ computeVolumetric() [3/3]

C3D_API sdw::Float castor3d::shader::Shadow::computeVolumetric ( shader::ShadowData const &  light,
LightSurface const &  lightSurface,
sdw::Mat4 const &  lightMatrix,
sdw::UInt const &  cascadeIndex,
sdw::UInt const &  maxCascade,
sdw::Float const &  scattering 
)

◆ declare()

C3D_API void castor3d::shader::Shadow::declare ( uint32_t &  index,
uint32_t  set 
)

◆ declareDirectional()

C3D_API void castor3d::shader::Shadow::declareDirectional ( uint32_t &  index,
uint32_t  set 
)

◆ declarePoint()

C3D_API void castor3d::shader::Shadow::declarePoint ( uint32_t &  index,
uint32_t  set 
)

◆ declareSpot()

C3D_API void castor3d::shader::Shadow::declareSpot ( uint32_t &  index,
uint32_t  set 
)

◆ getLightSpacePosition()

C3D_API sdw::Vec4 castor3d::shader::Shadow::getLightSpacePosition ( sdw::Mat4 const &  lightMatrix,
sdw::Vec3 const &  worldSpacePosition 
)

◆ isEnabled()

bool castor3d::shader::Shadow::isEnabled ( ) const
inline

Documentation des données membres

◆ MapDepthCmpDirectional

C3D_API castor::String const castor3d::shader::Shadow::MapDepthCmpDirectional
static

◆ MapDepthCmpPoint

C3D_API castor::String const castor3d::shader::Shadow::MapDepthCmpPoint
static

◆ MapDepthCmpSpot

C3D_API castor::String const castor3d::shader::Shadow::MapDepthCmpSpot
static

◆ MapDepthDirectional

C3D_API castor::String const castor3d::shader::Shadow::MapDepthDirectional
static

◆ MapDepthPoint

C3D_API castor::String const castor3d::shader::Shadow::MapDepthPoint
static

◆ MapDepthSpot

C3D_API castor::String const castor3d::shader::Shadow::MapDepthSpot
static

◆ MapFluxDirectional

C3D_API castor::String const castor3d::shader::Shadow::MapFluxDirectional
static

◆ MapFluxPoint

C3D_API castor::String const castor3d::shader::Shadow::MapFluxPoint
static

◆ MapFluxSpot

C3D_API castor::String const castor3d::shader::Shadow::MapFluxSpot
static

◆ MapNormalDirectional

C3D_API castor::String const castor3d::shader::Shadow::MapNormalDirectional
static

◆ MapNormalPoint

C3D_API castor::String const castor3d::shader::Shadow::MapNormalPoint
static

◆ MapNormalSpot

C3D_API castor::String const castor3d::shader::Shadow::MapNormalSpot
static

◆ MapPositionDirectional

C3D_API castor::String const castor3d::shader::Shadow::MapPositionDirectional
static

◆ MapPositionPoint

C3D_API castor::String const castor3d::shader::Shadow::MapPositionPoint
static

◆ MapPositionSpot

C3D_API castor::String const castor3d::shader::Shadow::MapPositionSpot
static

◆ MapVarianceDirectional

C3D_API castor::String const castor3d::shader::Shadow::MapVarianceDirectional
static

◆ MapVariancePoint

C3D_API castor::String const castor3d::shader::Shadow::MapVariancePoint
static

◆ MapVarianceSpot

C3D_API castor::String const castor3d::shader::Shadow::MapVarianceSpot
static

◆ RandomBuffer

C3D_API castor::String const castor3d::shader::Shadow::RandomBuffer
static

La documentation de cette classe a été générée à partir du fichier suivant :