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

#include <GlslPhongReflection.hpp>

Graphe d'héritage de castor3d::shader::PhongReflectionModel:
Inheritance graph
[légende]
Graphe de collaboration de castor3d::shader::PhongReflectionModel:
Collaboration graph
[légende]

Fonctions membres publiques

C3D_API PhongReflectionModel (sdw::ShaderWriter &writer, Utils &utils, uint32_t &envMapBinding, uint32_t envMapSet)
 
C3D_API void computeDeferred (LightMaterial &material, Surface const &surface, SceneData const &sceneData, sdw::Int envMapIndex, sdw::Int const &reflection, sdw::Int const &refraction, sdw::Float const &refractionRatio, sdw::Vec3 const &transmission, sdw::Vec3 &ambient, sdw::Vec3 &reflected, sdw::Vec3 &refracted) override
 
C3D_API sdw::Vec3 computeForward (LightMaterial &material, Surface const &surface, SceneData const &sceneData) override
 
C3D_API sdw::Vec3 computeForward (LightMaterial &material, Surface const &surface, SceneData const &sceneData, sdw::Float const &refractionRatio, sdw::Vec3 const &transmission) override
 
C3D_API void computeForward (LightMaterial &material, Surface const &surface, SceneData const &sceneData, sdw::Float const &refractionRatio, sdw::Vec3 const &transmission, sdw::Vec3 &ambient, sdw::Vec3 &reflected, sdw::Vec3 &refracted) override
 
- Fonctions membres publiques hérités de castor3d::shader::ReflectionModel
C3D_API ReflectionModel (sdw::ShaderWriter &writer, Utils &utils, PassFlags const &passFlags)
 
C3D_API ReflectionModel (sdw::ShaderWriter &writer, Utils &utils)
 
virtual C3D_API ~ReflectionModel ()=default
 
virtual C3D_API void computeDeferred (LightMaterial &material, Surface const &surface, SceneData const &sceneData, sdw::Int envMapIndex, sdw::Int const &reflection, sdw::Int const &refraction, sdw::Float const &refractionRatio, sdw::Vec3 const &transmission, sdw::Vec3 &ambient, sdw::Vec3 &reflected, sdw::Vec3 &refracted)=0
 
virtual C3D_API sdw::Vec3 computeForward (LightMaterial &material, Surface const &surface, SceneData const &sceneData)=0
 
virtual C3D_API sdw::Vec3 computeForward (LightMaterial &material, Surface const &surface, SceneData const &sceneData, sdw::Float const &refractionRatio, sdw::Vec3 const &transmission)=0
 
virtual C3D_API void computeForward (LightMaterial &material, Surface const &surface, SceneData const &sceneData, sdw::Float const &refractionRatio, sdw::Vec3 const &transmission, sdw::Vec3 &ambient, sdw::Vec3 &reflected, sdw::Vec3 &refracted)=0
 
C3D_API sdw::Float computeFresnel (LightMaterial &material, Surface const &surface, SceneData const &sceneData, sdw::Float const &refractionRatio)
 
C3D_API sdw::Vec4 computeScreenSpace (MatrixData const &matrixData, sdw::Vec3 const &viewPosition, sdw::Vec3 const &worldNormal, sdw::Vec2 const &texcoord, sdw::Vec4 const &ssrSettings, sdw::CombinedImage2DR32 const &depthMap, sdw::CombinedImage2DRgba32 const &normalMap, sdw::CombinedImage2DRgba32 const &colourMap)
 
sdw::Boolean traceScreenSpace (sdw::Vec3 csOrigin, sdw::Vec3 csDirection, sdw::Mat4 projectToPixelMatrix, sdw::CombinedImage2DR32 csZBuffer, sdw::Vec2 csZBufferSize, sdw::Float csZThickness, sdw::Boolean csZBufferIsHyperbolic, sdw::Vec3 clipInfo, sdw::Float nearPlaneZ, sdw::Float stride, sdw::Float jitterFraction, sdw::Float maxSteps, sdw::Float maxRayTraceDistance, sdw::Vec2 &hitPixel, sdw::Vec3 &csHitPoint)
 

Membres hérités additionnels

- Fonctions membres protégées hérités de castor3d::shader::ReflectionModel
void declareTraceScreenSpace ()
 
void declareComputeScreenSpace (MatrixData const &matrixData)
 
void declareComputeFresnel ()
 
- Attributs protégés hérités de castor3d::shader::ReflectionModel
sdw::ShaderWriter & m_writer
 
Utilsm_utils
 
PassFlags m_passFlags
 
sdw::Function< sdw::Boolean, sdw::InVec3, sdw::InVec3, sdw::InMat4, sdw::InCombinedImage2DR32, sdw::InVec2, sdw::InFloat, sdw::InBoolean, sdw::InVec3, sdw::InFloat, sdw::InFloat, sdw::InFloat, sdw::InFloat, sdw::InFloat, sdw::OutVec2, sdw::OutVec3 > m_traceScreenSpace
 
sdw::Function< sdw::Vec4, sdw::InVec3, sdw::InVec3, sdw::InVec2, sdw::InVec4, sdw::InCombinedImage2DR32, sdw::InCombinedImage2DRgba32, sdw::InCombinedImage2DRgba32 > m_computeScreenSpace
 
sdw::Function< sdw::Float, InSurface, sdw::InFloat, sdw::InVec3, sdw::InFloat > m_computeFresnel
 

Documentation des constructeurs et destructeur

◆ PhongReflectionModel()

C3D_API castor3d::shader::PhongReflectionModel::PhongReflectionModel ( sdw::ShaderWriter &  writer,
Utils utils,
uint32_t &  envMapBinding,
uint32_t  envMapSet 
)

Documentation des fonctions membres

◆ computeDeferred()

C3D_API void castor3d::shader::PhongReflectionModel::computeDeferred ( LightMaterial material,
Surface const &  surface,
SceneData const &  sceneData,
sdw::Int  envMapIndex,
sdw::Int const &  reflection,
sdw::Int const &  refraction,
sdw::Float const &  refractionRatio,
sdw::Vec3 const &  transmission,
sdw::Vec3 &  ambient,
sdw::Vec3 &  reflected,
sdw::Vec3 &  refracted 
)
overridevirtual

◆ computeForward() [1/3]

C3D_API sdw::Vec3 castor3d::shader::PhongReflectionModel::computeForward ( LightMaterial material,
Surface const &  surface,
SceneData const &  sceneData 
)
overridevirtual

◆ computeForward() [2/3]

C3D_API sdw::Vec3 castor3d::shader::PhongReflectionModel::computeForward ( LightMaterial material,
Surface const &  surface,
SceneData const &  sceneData,
sdw::Float const &  refractionRatio,
sdw::Vec3 const &  transmission 
)
overridevirtual

◆ computeForward() [3/3]

C3D_API void castor3d::shader::PhongReflectionModel::computeForward ( LightMaterial material,
Surface const &  surface,
SceneData const &  sceneData,
sdw::Float const &  refractionRatio,
sdw::Vec3 const &  transmission,
sdw::Vec3 &  ambient,
sdw::Vec3 &  reflected,
sdw::Vec3 &  refracted 
)
overridevirtual

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