Castor3D 0.17.0
Multiplatform 3D engine
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
castor3d::shader::PhongSpecularBRDF Class Reference

#include <GlslPhongBRDF.hpp>

Inheritance diagram for castor3d::shader::PhongSpecularBRDF:
Inheritance graph
[legend]
Collaboration diagram for castor3d::shader::PhongSpecularBRDF:
Collaboration graph
[legend]

Public Member Functions

 PhongSpecularBRDF (sdw::ShaderWriter &writer, c3d::BRDFHelpers &brdfHelpers)
 
void computeDerived (Utils &utils, BlendComponents const &components, sdw::Float const &HdotV, DirectLighting &output) override
 
- Public Member Functions inherited from castor3d::shader::SpecularBRDF
C3D_API SpecularBRDF (sdw::ShaderWriter &writer, BRDFHelpers &brdfHelpers)
 
virtual C3D_API ~SpecularBRDF ()=default
 
C3D_API sdw::RetVec3 compute (BlendComponents const &components, sdw::Vec3 const &N, sdw::Vec3 const &L, sdw::Vec3 const &H, sdw::Vec3 const &V, sdw::Float const &NdotL, sdw::Float const &NdotH)
 

Static Public Member Functions

static c3d::SpecularBRDFPtr create (sdw::ShaderWriter &writer, c3d::BRDFHelpers &brdfHelpers)
 
- Static Public Member Functions inherited from castor3d::shader::SpecularBRDF
static C3D_API SpecularBRDFPtr create (sdw::ShaderWriter &writer, BRDFHelpers &brdfHelpers)
 

Static Public Attributes

static castor::StringView constexpr Name { cuT( "phong" ) }
 
- Static Public Attributes inherited from castor3d::shader::SpecularBRDF
static C3D_API castor::StringView constexpr Name { cuT( "default" ) }
 

Additional Inherited Members

- Protected Attributes inherited from castor3d::shader::SpecularBRDF
sdw::ShaderWriter & m_writer
 
BRDFHelpersm_brdfHelpers
 
sdw::Function< sdw::Vec3, InBlendComponents, sdw::InVec3, sdw::InVec3, sdw::InVec3, sdw::InVec3, sdw::InFloat, sdw::InFloat > m_compute
 

Constructor & Destructor Documentation

◆ PhongSpecularBRDF()

castor3d::shader::PhongSpecularBRDF::PhongSpecularBRDF ( sdw::ShaderWriter & writer,
c3d::BRDFHelpers & brdfHelpers )

Member Function Documentation

◆ computeDerived()

void castor3d::shader::PhongSpecularBRDF::computeDerived ( Utils & utils,
BlendComponents const & components,
sdw::Float const & HdotV,
DirectLighting & output )
overridevirtual

Reimplemented from castor3d::shader::SpecularBRDF.

◆ create()

static c3d::SpecularBRDFPtr castor3d::shader::PhongSpecularBRDF::create ( sdw::ShaderWriter & writer,
c3d::BRDFHelpers & brdfHelpers )
static

Member Data Documentation

◆ Name

castor::StringView constexpr castor3d::shader::PhongSpecularBRDF::Name { cuT( "phong" ) }
staticconstexpr

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