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

#include <GlslBRDFHelpers.hpp>

Public Member Functions

C3D_API BRDFHelpers (sdw::ShaderWriter &writer)
 
C3D_API sdw::RetVec2 hammersley (sdw::UInt const &i, sdw::UInt const &n)
 
C3D_API sdw::RetFloat visibilitySmithGGXCorrelated (sdw::Float const &NdotV, sdw::Float const &NdotL, sdw::Float const &roughness)
 
C3D_API sdw::RetFloat visibilityAshikhmin (sdw::Float const &NdotL, sdw::Float const &NdotV)
 
C3D_API sdw::RetFloat visibilitySheen (sdw::Float const &NdotV, sdw::Float const &NdotL, sdw::Float const &roughness)
 
C3D_API sdw::RetFloat distributionGGX (sdw::Float const &NdotH, sdw::Float const &alpha)
 
C3D_API sdw::RetFloat distributionCharlie (sdw::Float const &NdotH, sdw::Float const &alpha)
 
C3D_API RetMicrofacetDistributionSample importanceSampleGGX (sdw::Vec2 const &xi, sdw::Float const &roughness)
 
C3D_API RetMicrofacetDistributionSample importanceSampleCharlie (sdw::Vec2 const &xi, sdw::Float const &roughness)
 
C3D_API sdw::Vec4 getImportanceSample (MicrofacetDistributionSample const &is, sdw::Vec3 const &n)
 

Constructor & Destructor Documentation

◆ BRDFHelpers()

C3D_API castor3d::shader::BRDFHelpers::BRDFHelpers ( sdw::ShaderWriter & writer)
explicit

Member Function Documentation

◆ distributionCharlie()

C3D_API sdw::RetFloat castor3d::shader::BRDFHelpers::distributionCharlie ( sdw::Float const & NdotH,
sdw::Float const & alpha )

◆ distributionGGX()

C3D_API sdw::RetFloat castor3d::shader::BRDFHelpers::distributionGGX ( sdw::Float const & NdotH,
sdw::Float const & alpha )

◆ getImportanceSample()

C3D_API sdw::Vec4 castor3d::shader::BRDFHelpers::getImportanceSample ( MicrofacetDistributionSample const & is,
sdw::Vec3 const & n )

◆ hammersley()

C3D_API sdw::RetVec2 castor3d::shader::BRDFHelpers::hammersley ( sdw::UInt const & i,
sdw::UInt const & n )

◆ importanceSampleCharlie()

C3D_API RetMicrofacetDistributionSample castor3d::shader::BRDFHelpers::importanceSampleCharlie ( sdw::Vec2 const & xi,
sdw::Float const & roughness )

◆ importanceSampleGGX()

C3D_API RetMicrofacetDistributionSample castor3d::shader::BRDFHelpers::importanceSampleGGX ( sdw::Vec2 const & xi,
sdw::Float const & roughness )

◆ visibilityAshikhmin()

C3D_API sdw::RetFloat castor3d::shader::BRDFHelpers::visibilityAshikhmin ( sdw::Float const & NdotL,
sdw::Float const & NdotV )

◆ visibilitySheen()

C3D_API sdw::RetFloat castor3d::shader::BRDFHelpers::visibilitySheen ( sdw::Float const & NdotV,
sdw::Float const & NdotL,
sdw::Float const & roughness )

◆ visibilitySmithGGXCorrelated()

C3D_API sdw::RetFloat castor3d::shader::BRDFHelpers::visibilitySmithGGXCorrelated ( sdw::Float const & NdotV,
sdw::Float const & NdotL,
sdw::Float const & roughness )

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