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

#include <GlslLight.hpp>

Fonctions membres publiques

C3D_API Lights (Engine const &engine, LightingModelID lightingModelId, BackgroundModelID backgroundModelId, Materials const &materials, BRDFHelpers &brdf, Utils &utils, ShadowOptions shadowOptions, SssProfiles const *sssProfiles, bool enableVolumetric)
 
C3D_API Lights (Engine const &engine, LightingModelID lightingModelId, BackgroundModelID backgroundModelId, Materials const &materials, BRDFHelpers &brdf, Utils &utils, ShadowOptions shadowOptions, SssProfiles const *sssProfiles, uint32_t lightsBufBinding, uint32_t lightsBufSet, uint32_t &shadowMapBinding, uint32_t shadowMapSet, bool enableVolumetric)
 
C3D_API Lights (Engine const &engine, LightingModelID lightingModelId, BackgroundModelID backgroundModelId, Materials const &materials, BRDFHelpers &brdf, Utils &utils, ShadowOptions shadowOptions, SssProfiles const *sssProfiles, LightType lightType, uint32_t lightsBufBinding, uint32_t lightsBufSet, uint32_t &shadowMapBinding, uint32_t shadowMapSet, bool enableVolumetric)
 
 Lights (Engine const &engine, LightingModelID lightingModelId, BackgroundModelID backgroundModelId, Materials const &materials, BRDFHelpers &brdf, Utils &utils, ShadowOptions shadowOptions, SssProfiles const *sssProfiles)
 
 Lights (Engine const &engine, LightingModelID lightingModelId, BackgroundModelID backgroundModelId, Materials const &materials, BRDFHelpers &brdf, Utils &utils, ShadowOptions shadowOptions, SssProfiles const *sssProfiles, uint32_t lightsBufBinding, uint32_t lightsBufSet, uint32_t &shadowMapBinding, uint32_t shadowMapSet)
 
 Lights (Engine const &engine, LightingModelID lightingModelId, BackgroundModelID backgroundModelId, Materials const &materials, BRDFHelpers &brdf, Utils &utils, ShadowOptions shadowOptions, SssProfiles const *sssProfiles, LightType lightType, uint32_t lightsBufBinding, uint32_t lightsBufSet, uint32_t &shadowMapBinding, uint32_t shadowMapSet)
 
 Lights (Engine const &engine, Materials const &materials, BRDFHelpers &brdf, Utils &utils, ShadowOptions shadowOptions, SssProfiles const *sssProfiles, bool enableVolumetric)
 
 Lights (Engine const &engine, Materials const &materials, BRDFHelpers &brdf, Utils &utils, ShadowOptions shadowOptions, SssProfiles const *sssProfiles, uint32_t lightsBufBinding, uint32_t lightsBufSet, uint32_t &shadowMapBinding, uint32_t shadowMapSet, bool enableVolumetric)
 
 Lights (Engine const &engine, Materials const &materials, BRDFHelpers &brdf, Utils &utils, ShadowOptions shadowOptions, SssProfiles const *sssProfiles, LightType lightType, uint32_t lightsBufBinding, uint32_t lightsBufSet, uint32_t &shadowMapBinding, uint32_t shadowMapSet, bool enableVolumetric)
 
 Lights (Engine const &engine, Materials const &materials, BRDFHelpers &brdf, Utils &utils, ShadowOptions shadowOptions, SssProfiles const *sssProfiles)
 
 Lights (Engine const &engine, Materials const &materials, BRDFHelpers &brdf, Utils &utils, ShadowOptions shadowOptions, SssProfiles const *sssProfiles, uint32_t lightsBufBinding, uint32_t lightsBufSet, uint32_t &shadowMapBinding, uint32_t shadowMapSet)
 
 Lights (Engine const &engine, Materials const &materials, BRDFHelpers &brdf, Utils &utils, ShadowOptions shadowOptions, SssProfiles const *sssProfiles, LightType lightType, uint32_t lightsBufBinding, uint32_t lightsBufSet, uint32_t &shadowMapBinding, uint32_t shadowMapSet)
 

Forward renderring

C3D_API void computeCombinedDifSpec (BlendComponents const &components, BackgroundModel &background, LightSurface const &lightSurface, sdw::UInt const &receivesShadows, OutputComponents &output)
 
C3D_API void computeCombinedDif (BlendComponents const &components, BackgroundModel &background, LightSurface const &lightSurface, sdw::UInt const &receivesShadows, sdw::Vec3 &output)
 

Deferred renderring

C3D_API void computeDifSpec (DirectionalLight const &light, BlendComponents const &components, BackgroundModel &background, LightSurface const &lightSurface, sdw::UInt const &receivesShadows, OutputComponents &output)
 
C3D_API void computeDifSpec (PointLight const &light, BlendComponents const &components, LightSurface const &lightSurface, sdw::UInt const &receivesShadows, OutputComponents &output)
 
C3D_API void computeDifSpec (SpotLight const &light, BlendComponents const &components, LightSurface const &lightSurface, sdw::UInt const &receivesShadows, OutputComponents &output)
 
C3D_API sdw::Vec3 computeDif (DirectionalLight const &light, BlendComponents const &components, BackgroundModel &background, LightSurface const &lightSurface, sdw::UInt const &receivesShadows)
 
C3D_API sdw::Vec3 computeDif (PointLight const &light, BlendComponents const &components, LightSurface const &lightSurface, sdw::UInt const &receivesShadows)
 
C3D_API sdw::Vec3 computeDif (SpotLight const &light, BlendComponents const &components, LightSurface const &lightSurface, sdw::UInt const &receivesShadows)
 
C3D_API sdw::Float getFinalTransmission (BlendComponents const &components, sdw::Vec3 const incident)
 
C3D_API bool hasIblSupport ()
 
C3D_API LightingModelgetLightingModel ()
 

Light accessors

C3D_API DirectionalLight getDirectionalLight (sdw::UInt const &offset)
 
C3D_API PointLight getPointLight (sdw::UInt const &offset)
 
C3D_API SpotLight getSpotLight (sdw::UInt const &offset)
 
C3D_API sdw::Vec3 getCascadeFactors (DirectionalLight const light, sdw::Vec3 viewVertex, sdw::UInt maxCascadeCount)
 
ShadowgetShadowModel () const
 

Documentation des constructeurs et destructeur

◆ Lights() [1/12]

C3D_API castor3d::shader::Lights::Lights ( Engine const &  engine,
LightingModelID  lightingModelId,
BackgroundModelID  backgroundModelId,
Materials const &  materials,
BRDFHelpers brdf,
Utils utils,
ShadowOptions  shadowOptions,
SssProfiles const *  sssProfiles,
bool  enableVolumetric 
)

◆ Lights() [2/12]

C3D_API castor3d::shader::Lights::Lights ( Engine const &  engine,
LightingModelID  lightingModelId,
BackgroundModelID  backgroundModelId,
Materials const &  materials,
BRDFHelpers brdf,
Utils utils,
ShadowOptions  shadowOptions,
SssProfiles const *  sssProfiles,
uint32_t  lightsBufBinding,
uint32_t  lightsBufSet,
uint32_t &  shadowMapBinding,
uint32_t  shadowMapSet,
bool  enableVolumetric 
)

◆ Lights() [3/12]

C3D_API castor3d::shader::Lights::Lights ( Engine const &  engine,
LightingModelID  lightingModelId,
BackgroundModelID  backgroundModelId,
Materials const &  materials,
BRDFHelpers brdf,
Utils utils,
ShadowOptions  shadowOptions,
SssProfiles const *  sssProfiles,
LightType  lightType,
uint32_t  lightsBufBinding,
uint32_t  lightsBufSet,
uint32_t &  shadowMapBinding,
uint32_t  shadowMapSet,
bool  enableVolumetric 
)

◆ Lights() [4/12]

castor3d::shader::Lights::Lights ( Engine const &  engine,
LightingModelID  lightingModelId,
BackgroundModelID  backgroundModelId,
Materials const &  materials,
BRDFHelpers brdf,
Utils utils,
ShadowOptions  shadowOptions,
SssProfiles const *  sssProfiles 
)
inline

◆ Lights() [5/12]

castor3d::shader::Lights::Lights ( Engine const &  engine,
LightingModelID  lightingModelId,
BackgroundModelID  backgroundModelId,
Materials const &  materials,
BRDFHelpers brdf,
Utils utils,
ShadowOptions  shadowOptions,
SssProfiles const *  sssProfiles,
uint32_t  lightsBufBinding,
uint32_t  lightsBufSet,
uint32_t &  shadowMapBinding,
uint32_t  shadowMapSet 
)
inline

◆ Lights() [6/12]

castor3d::shader::Lights::Lights ( Engine const &  engine,
LightingModelID  lightingModelId,
BackgroundModelID  backgroundModelId,
Materials const &  materials,
BRDFHelpers brdf,
Utils utils,
ShadowOptions  shadowOptions,
SssProfiles const *  sssProfiles,
LightType  lightType,
uint32_t  lightsBufBinding,
uint32_t  lightsBufSet,
uint32_t &  shadowMapBinding,
uint32_t  shadowMapSet 
)
inline

◆ Lights() [7/12]

castor3d::shader::Lights::Lights ( Engine const &  engine,
Materials const &  materials,
BRDFHelpers brdf,
Utils utils,
ShadowOptions  shadowOptions,
SssProfiles const *  sssProfiles,
bool  enableVolumetric 
)
inline

◆ Lights() [8/12]

castor3d::shader::Lights::Lights ( Engine const &  engine,
Materials const &  materials,
BRDFHelpers brdf,
Utils utils,
ShadowOptions  shadowOptions,
SssProfiles const *  sssProfiles,
uint32_t  lightsBufBinding,
uint32_t  lightsBufSet,
uint32_t &  shadowMapBinding,
uint32_t  shadowMapSet,
bool  enableVolumetric 
)
inline

◆ Lights() [9/12]

castor3d::shader::Lights::Lights ( Engine const &  engine,
Materials const &  materials,
BRDFHelpers brdf,
Utils utils,
ShadowOptions  shadowOptions,
SssProfiles const *  sssProfiles,
LightType  lightType,
uint32_t  lightsBufBinding,
uint32_t  lightsBufSet,
uint32_t &  shadowMapBinding,
uint32_t  shadowMapSet,
bool  enableVolumetric 
)
inline

◆ Lights() [10/12]

castor3d::shader::Lights::Lights ( Engine const &  engine,
Materials const &  materials,
BRDFHelpers brdf,
Utils utils,
ShadowOptions  shadowOptions,
SssProfiles const *  sssProfiles 
)
inline

◆ Lights() [11/12]

castor3d::shader::Lights::Lights ( Engine const &  engine,
Materials const &  materials,
BRDFHelpers brdf,
Utils utils,
ShadowOptions  shadowOptions,
SssProfiles const *  sssProfiles,
uint32_t  lightsBufBinding,
uint32_t  lightsBufSet,
uint32_t &  shadowMapBinding,
uint32_t  shadowMapSet 
)
inline

◆ Lights() [12/12]

castor3d::shader::Lights::Lights ( Engine const &  engine,
Materials const &  materials,
BRDFHelpers brdf,
Utils utils,
ShadowOptions  shadowOptions,
SssProfiles const *  sssProfiles,
LightType  lightType,
uint32_t  lightsBufBinding,
uint32_t  lightsBufSet,
uint32_t &  shadowMapBinding,
uint32_t  shadowMapSet 
)
inline

Documentation des fonctions membres

◆ computeCombinedDif()

C3D_API void castor3d::shader::Lights::computeCombinedDif ( BlendComponents const &  components,
BackgroundModel background,
LightSurface const &  lightSurface,
sdw::UInt const &  receivesShadows,
sdw::Vec3 &  output 
)

◆ computeCombinedDifSpec()

C3D_API void castor3d::shader::Lights::computeCombinedDifSpec ( BlendComponents const &  components,
BackgroundModel background,
LightSurface const &  lightSurface,
sdw::UInt const &  receivesShadows,
OutputComponents output 
)

◆ computeDif() [1/3]

C3D_API sdw::Vec3 castor3d::shader::Lights::computeDif ( DirectionalLight const &  light,
BlendComponents const &  components,
BackgroundModel background,
LightSurface const &  lightSurface,
sdw::UInt const &  receivesShadows 
)

◆ computeDif() [2/3]

C3D_API sdw::Vec3 castor3d::shader::Lights::computeDif ( PointLight const &  light,
BlendComponents const &  components,
LightSurface const &  lightSurface,
sdw::UInt const &  receivesShadows 
)

◆ computeDif() [3/3]

C3D_API sdw::Vec3 castor3d::shader::Lights::computeDif ( SpotLight const &  light,
BlendComponents const &  components,
LightSurface const &  lightSurface,
sdw::UInt const &  receivesShadows 
)

◆ computeDifSpec() [1/3]

C3D_API void castor3d::shader::Lights::computeDifSpec ( DirectionalLight const &  light,
BlendComponents const &  components,
BackgroundModel background,
LightSurface const &  lightSurface,
sdw::UInt const &  receivesShadows,
OutputComponents output 
)

◆ computeDifSpec() [2/3]

C3D_API void castor3d::shader::Lights::computeDifSpec ( PointLight const &  light,
BlendComponents const &  components,
LightSurface const &  lightSurface,
sdw::UInt const &  receivesShadows,
OutputComponents output 
)

◆ computeDifSpec() [3/3]

C3D_API void castor3d::shader::Lights::computeDifSpec ( SpotLight const &  light,
BlendComponents const &  components,
LightSurface const &  lightSurface,
sdw::UInt const &  receivesShadows,
OutputComponents output 
)

◆ getCascadeFactors()

C3D_API sdw::Vec3 castor3d::shader::Lights::getCascadeFactors ( DirectionalLight const  light,
sdw::Vec3  viewVertex,
sdw::UInt  maxCascadeCount 
)

◆ getDirectionalLight()

C3D_API DirectionalLight castor3d::shader::Lights::getDirectionalLight ( sdw::UInt const &  offset)

◆ getFinalTransmission()

C3D_API sdw::Float castor3d::shader::Lights::getFinalTransmission ( BlendComponents const &  components,
sdw::Vec3 const  incident 
)

◆ getLightingModel()

C3D_API LightingModel * castor3d::shader::Lights::getLightingModel ( )

◆ getPointLight()

C3D_API PointLight castor3d::shader::Lights::getPointLight ( sdw::UInt const &  offset)

◆ getShadowModel()

Shadow & castor3d::shader::Lights::getShadowModel ( ) const
inline

◆ getSpotLight()

C3D_API SpotLight castor3d::shader::Lights::getSpotLight ( sdw::UInt const &  offset)

◆ hasIblSupport()

C3D_API bool castor3d::shader::Lights::hasIblSupport ( )

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