#include <GlslMaterial.hpp>
|
static C3D_API ast::type::BaseStructPtr | makeType (ast::type::TypesCache &cache, PassShaders const &passShaders, sdw::expr::ExprList &inits) |
|
static ast::type::BaseStructPtr | makeType (ast::type::TypesCache &cache, PassShaders const &passShaders) |
|
static C3D_API void | applyAlphaFunc (sdw::ShaderWriter &writer, VkCompareOp alphaFunc, sdw::Float &opacity, sdw::Float const &alphaRef, bool opaque=true) |
| Writes the alpha function in GLSL.
|
|
◆ Material()
C3D_API castor3d::shader::Material::Material |
( |
sdw::ShaderWriter & | writer, |
|
|
ast::expr::ExprPtr | expr, |
|
|
bool | enabled ) |
◆ applyAlphaFunc()
static C3D_API void castor3d::shader::Material::applyAlphaFunc |
( |
sdw::ShaderWriter & | writer, |
|
|
VkCompareOp | alphaFunc, |
|
|
sdw::Float & | opacity, |
|
|
sdw::Float const & | alphaRef, |
|
|
bool | opaque = true ) |
|
static |
Writes the alpha function in GLSL.
- Parameters
-
| writer | The writer. |
| alphaFunc | The alpha function. |
[in] | opacity | The opacity value. |
[in] | alphaRef | The alpha comparison reference value. |
[in] | opaque | true for opaque nodes, false for transparent ones. |
◆ getPassMultipliers()
C3D_API void castor3d::shader::Material::getPassMultipliers |
( |
PipelineFlags const & | flags, |
|
|
sdw::UVec4 const & | passMasks, |
|
|
sdw::Array< sdw::Vec4 > const & | passMultipliers ) const |
◆ getTexture() [1/2]
C3D_API sdw::UInt castor3d::shader::Material::getTexture |
( |
sdw::UInt const & | index | ) |
const |
◆ getTexture() [2/2]
C3D_API sdw::UInt castor3d::shader::Material::getTexture |
( |
uint32_t | index | ) |
const |
◆ makeType() [1/2]
static ast::type::BaseStructPtr castor3d::shader::Material::makeType |
( |
ast::type::TypesCache & | cache, |
|
|
PassShaders const & | passShaders ) |
|
inlinestatic |
◆ makeType() [2/2]
static C3D_API ast::type::BaseStructPtr castor3d::shader::Material::makeType |
( |
ast::type::TypesCache & | cache, |
|
|
PassShaders const & | passShaders, |
|
|
sdw::expr::ExprList & | inits ) |
|
static |
◆ SDW_DeclStructInstance()
◆ Materials
◆ alphaRef
sdw::Float castor3d::shader::Material::alphaRef |
◆ attenuationColour
sdw::Vec3 castor3d::shader::Material::attenuationColour |
◆ attenuationDistance
sdw::Float castor3d::shader::Material::attenuationDistance |
◆ colour
sdw::Vec3 castor3d::shader::Material::colour |
◆ hasReflection
sdw::UInt castor3d::shader::Material::hasReflection |
◆ hasTransmission
sdw::UInt castor3d::shader::Material::hasTransmission |
◆ index
sdw::UInt castor3d::shader::Material::index |
◆ lighting
sdw::UInt castor3d::shader::Material::lighting |
◆ lightingModel
sdw::UInt castor3d::shader::Material::lightingModel |
◆ opacity
sdw::Float castor3d::shader::Material::opacity |
◆ passCount
sdw::UInt castor3d::shader::Material::passCount |
◆ passId
sdw::UInt castor3d::shader::Material::passId |
◆ refractionRatio
sdw::Float castor3d::shader::Material::refractionRatio |
◆ specular
sdw::Vec3 castor3d::shader::Material::specular |
◆ thicknessFactor
sdw::Float castor3d::shader::Material::thicknessFactor |
◆ transmission
sdw::Float castor3d::shader::Material::transmission |
The documentation for this struct was generated from the following file: