Castor3D 0.12.0
Multiplatform 3D engine
|
#include <GlslPhongMaterial.hpp>
Fonctions membres publiques | |
C3D_API | PhongLightMaterial (sdw::ShaderWriter &writer, sdw::expr::ExprPtr expr, bool enabled) |
C3D_API void | create (sdw::Vec3 const &albedo, sdw::Vec4 const &data3, sdw::Vec4 const &data2, Material const &material) override |
C3D_API void | create (sdw::Vec3 const &albedo, sdw::Vec4 const &data3, sdw::Vec4 const &data2, sdw::Float const &ambient) override |
C3D_API void | create (Material const &material) override |
C3D_API void | output (sdw::Vec4 &outData2, sdw::Vec4 &outData3) const override |
C3D_API sdw::Vec3 | getAmbient (sdw::Vec3 const &ambientLight) const override |
C3D_API void | adjustDirectSpecular (sdw::Vec3 &directSpecular) const override |
C3D_API sdw::Vec3 | getIndirectAmbient (sdw::Vec3 const &indirectAmbient) const override |
C3D_API sdw::Float | getMetalness () const override |
C3D_API sdw::Float | getRoughness () const override |
Fonctions membres publiques hérités de castor3d::shader::LightMaterial | |
C3D_API | LightMaterial (sdw::ShaderWriter &writer, sdw::expr::ExprPtr expr, bool enabled) |
SDW_DeclStructInstance (C3D_API, LightMaterial) | |
virtual C3D_API void | create (sdw::Vec3 const &albedo, sdw::Vec4 const &data3, sdw::Vec4 const &data2, Material const &material)=0 |
virtual C3D_API void | create (sdw::Vec3 const &albedo, sdw::Vec4 const &data3, sdw::Vec4 const &data2, sdw::Float const &ambient=0.0_f)=0 |
virtual C3D_API void | create (Material const &material)=0 |
virtual C3D_API void | output (sdw::Vec4 &outData2, sdw::Vec4 &outData3) const =0 |
virtual C3D_API sdw::Vec3 | getAmbient (sdw::Vec3 const &ambientLight) const =0 |
virtual C3D_API void | adjustDirectSpecular (sdw::Vec3 &directSpecular) const =0 |
virtual C3D_API sdw::Vec3 | getIndirectAmbient (sdw::Vec3 const &indirectAmbient) const =0 |
virtual C3D_API sdw::Float | getMetalness () const =0 |
virtual C3D_API sdw::Float | getRoughness () const =0 |
Fonctions membres publiques statiques | |
static C3D_API sdw::Float | computeGlossiness (sdw::Float const &shininess) |
static C3D_API sdw::Float | computeShininess (sdw::Float const &glossiness) |
Fonctions membres publiques statiques hérités de castor3d::shader::LightMaterial | |
static C3D_API ast::type::BaseStructPtr | makeType (ast::type::TypesCache &cache) |
static C3D_API sdw::Vec3 | computeF0 (sdw::Vec3 const &albedo, sdw::Float const &metalness) |
static C3D_API sdw::Float | computeMetalness (sdw::Vec3 const &albedo, sdw::Vec3 const &specular) |
static C3D_API sdw::Float | computeRoughness (sdw::Float const &glossiness) |
Attributs publics | |
sdw::Float & | ambient |
sdw::Float & | shininess |
Attributs publics hérités de castor3d::shader::LightMaterial | |
sdw::Vec4 | edgeFactors |
sdw::Vec4 | edgeColour |
sdw::Vec4 | specific |
sdw::Vec3 | albedo |
sdw::Vec3 | specular |
sdw::Float | edgeWidth |
sdw::Float | depthFactor |
sdw::Float | normalFactor |
sdw::Float | objectFactor |
sdw::Float | sssProfileIndex |
sdw::Float | sssTransmittance |
Membres hérités additionnels | |
Attributs protégés hérités de castor3d::shader::LightMaterial | |
sdw::Float | albDiv |
sdw::Float | spcDiv |
C3D_API castor3d::shader::PhongLightMaterial::PhongLightMaterial | ( | sdw::ShaderWriter & | writer, |
sdw::expr::ExprPtr | expr, | ||
bool | enabled | ||
) |
|
overridevirtual |
Implémente castor3d::shader::LightMaterial.
|
static |
|
static |
|
overridevirtual |
Implémente castor3d::shader::LightMaterial.
|
overridevirtual |
Implémente castor3d::shader::LightMaterial.
|
overridevirtual |
Implémente castor3d::shader::LightMaterial.
|
overridevirtual |
Implémente castor3d::shader::LightMaterial.
|
overridevirtual |
Implémente castor3d::shader::LightMaterial.
|
overridevirtual |
Implémente castor3d::shader::LightMaterial.
|
overridevirtual |
Implémente castor3d::shader::LightMaterial.
|
overridevirtual |
Implémente castor3d::shader::LightMaterial.
sdw::Float& castor3d::shader::PhongLightMaterial::ambient |
sdw::Float& castor3d::shader::PhongLightMaterial::shininess |