Castor3D 0.16.0
Multiplatform 3D engine
Public Member Functions | List of all members
castor3d::shader::GlobalIllumination Class Reference

#include <GlslGlobalIllumination.hpp>

Public Member Functions

C3D_API GlobalIllumination (sdw::ShaderWriter &writer, Utils &utils)
 
C3D_API GlobalIllumination (sdw::ShaderWriter &writer, Utils &utils, uint32_t &bindingIndex, uint32_t setIndex, SceneFlags sceneFlags, IndirectLightingData const &indirectLighting)
 
C3D_API void computeCombinedDifSpec (SceneFlags sceneFlags, bool hasDiffuseGI, CookTorranceBRDF &cookTorrance, LightSurface lightSurface, sdw::Float roughness, sdw::CombinedImage2DRgba32 brdfMap, IndirectLighting &indirectLighting, DebugOutput &debugOutput)
 
C3D_API void computeOcclusion (SceneFlags sceneFlags, LightSurface lightSurface, IndirectLighting &indirectLighting, DebugOutput &debugOutput)
 
C3D_API void computeDiffuse (SceneFlags sceneFlags, LightSurface lightSurface, IndirectLighting &indirectLighting, DebugOutput &debugOutput)
 
C3D_API void computeAmbient (SceneFlags sceneFlags, IndirectLighting &indirectLighting, DebugOutput &debugOutput)
 
C3D_API void computeSpecular (SceneFlags sceneFlags, LightSurface lightSurface, sdw::Float roughness, sdw::CombinedImage2DRgba32 brdfMap, IndirectLighting &indirectLighting, DebugOutput &debugOutput)
 
C3D_API sdw::Vec4 traceConeRadiance (sdw::CombinedImage3DRgba32 const &voxels, LightSurface lightSurface, VoxelData const &voxelData)
 
C3D_API sdw::Vec4 traceConeRadiance (sdw::CombinedImage3DRgba32 const &voxels, sdw::Vec3 const &wsNormal, sdw::Vec3 const &wsPosition, VoxelData const &voxelData)
 

Constructor & Destructor Documentation

◆ GlobalIllumination() [1/2]

C3D_API castor3d::shader::GlobalIllumination::GlobalIllumination ( sdw::ShaderWriter & writer,
Utils & utils )
explicit

◆ GlobalIllumination() [2/2]

C3D_API castor3d::shader::GlobalIllumination::GlobalIllumination ( sdw::ShaderWriter & writer,
Utils & utils,
uint32_t & bindingIndex,
uint32_t setIndex,
SceneFlags sceneFlags,
IndirectLightingData const & indirectLighting )
explicit

Member Function Documentation

◆ computeAmbient()

C3D_API void castor3d::shader::GlobalIllumination::computeAmbient ( SceneFlags sceneFlags,
IndirectLighting & indirectLighting,
DebugOutput & debugOutput )

◆ computeCombinedDifSpec()

C3D_API void castor3d::shader::GlobalIllumination::computeCombinedDifSpec ( SceneFlags sceneFlags,
bool hasDiffuseGI,
CookTorranceBRDF & cookTorrance,
LightSurface lightSurface,
sdw::Float roughness,
sdw::CombinedImage2DRgba32 brdfMap,
IndirectLighting & indirectLighting,
DebugOutput & debugOutput )

◆ computeDiffuse()

C3D_API void castor3d::shader::GlobalIllumination::computeDiffuse ( SceneFlags sceneFlags,
LightSurface lightSurface,
IndirectLighting & indirectLighting,
DebugOutput & debugOutput )

◆ computeOcclusion()

C3D_API void castor3d::shader::GlobalIllumination::computeOcclusion ( SceneFlags sceneFlags,
LightSurface lightSurface,
IndirectLighting & indirectLighting,
DebugOutput & debugOutput )

◆ computeSpecular()

C3D_API void castor3d::shader::GlobalIllumination::computeSpecular ( SceneFlags sceneFlags,
LightSurface lightSurface,
sdw::Float roughness,
sdw::CombinedImage2DRgba32 brdfMap,
IndirectLighting & indirectLighting,
DebugOutput & debugOutput )

◆ traceConeRadiance() [1/2]

C3D_API sdw::Vec4 castor3d::shader::GlobalIllumination::traceConeRadiance ( sdw::CombinedImage3DRgba32 const & voxels,
LightSurface lightSurface,
VoxelData const & voxelData )

◆ traceConeRadiance() [2/2]

C3D_API sdw::Vec4 castor3d::shader::GlobalIllumination::traceConeRadiance ( sdw::CombinedImage3DRgba32 const & voxels,
sdw::Vec3 const & wsNormal,
sdw::Vec3 const & wsPosition,
VoxelData const & voxelData )

The documentation for this class was generated from the following file: