Castor3D
0.11.0
Multiplatform 3D engine
|
Fonctions membres publiques | |
C3D_API | TextureConfigData (sdw::ShaderWriter &writer, ast::expr::ExprPtr expr, bool enabled) |
C3D_API sdw::Vec3 | getDiffuse (sdw::ShaderWriter &writer, sdw::Vec4 const &sampled, sdw::Vec3 const &diffuse, sdw::Float gamma) const |
C3D_API sdw::Vec3 | getAlbedo (sdw::ShaderWriter &writer, sdw::Vec4 const &sampled, sdw::Vec3 const &diffuse, sdw::Float gamma) const |
C3D_API sdw::Vec3 | getEmissive (sdw::ShaderWriter &writer, sdw::Vec4 const &sampled, sdw::Vec3 const &emissive, sdw::Float gamma) const |
C3D_API sdw::Vec3 | getSpecular (sdw::ShaderWriter &writer, sdw::Vec4 const &sampled, sdw::Vec3 const &specular) const |
C3D_API sdw::Float | getMetalness (sdw::ShaderWriter &writer, sdw::Vec4 const &sampled, sdw::Float const &metalness) const |
C3D_API sdw::Float | getShininess (sdw::ShaderWriter &writer, sdw::Vec4 const &sampled, sdw::Float const &shininess) const |
C3D_API sdw::Float | getGlossiness (sdw::ShaderWriter &writer, sdw::Vec4 const &sampled, sdw::Float const &glossiness) const |
C3D_API sdw::Float | getRoughness (sdw::ShaderWriter &writer, sdw::Vec4 const &sampled, sdw::Float const &roughness) const |
C3D_API sdw::Float | getOpacity (sdw::ShaderWriter &writer, sdw::Vec4 const &sampled, sdw::Float const &opacity) const |
C3D_API sdw::Vec3 | getNormal (sdw::ShaderWriter &writer, sdw::Vec4 const &sampled, sdw::Mat3 const &tbn) const |
C3D_API sdw::Vec3 | getNormal (sdw::ShaderWriter &writer, sdw::Vec4 const &sampled, sdw::Vec3 const &normal, sdw::Vec3 const &tangent, sdw::Vec3 const &bitangent) const |
C3D_API sdw::Float | getHeight (sdw::ShaderWriter &writer, sdw::Vec4 const &sampled, sdw::Float const &height) const |
C3D_API sdw::Float | getOcclusion (sdw::ShaderWriter &writer, sdw::Vec4 const &sampled, sdw::Float const &occlusion) const |
C3D_API sdw::Float | getTransmittance (sdw::ShaderWriter &writer, sdw::Vec4 const &sampled, sdw::Float const &transmittance) const |
C3D_API sdw::Vec2 | convertUV (sdw::ShaderWriter &writer, sdw::Vec2 const &uv) const |
C3D_API sdw::Vec3 | convertUVW (sdw::ShaderWriter &writer, sdw::Vec3 const &uvw) const |
Fonctions membres publiques statiques | |
static C3D_API std::unique_ptr< sdw::Struct > | declare (sdw::ShaderWriter &writer) |
static C3D_API ast::type::StructPtr | makeType (ast::type::TypesCache &cache) |
Attributs publics | |
sdw::Vec4 | colrSpec |
sdw::Vec4 | glossOpa |
sdw::Vec4 | emisOccl |
sdw::Vec4 | trnsDumm |
sdw::Vec4 | normalFc |
sdw::Vec4 | heightFc |
sdw::Vec4 | miscVals |
sdw::Vec4 | translate |
sdw::Vec4 | rotate |
sdw::Vec2 | colourMask |
sdw::Vec2 | specularMask |
sdw::Vec2 | glossinessMask |
sdw::Vec2 | opacityMask |
sdw::Vec2 | emissiveMask |
sdw::Vec2 | normalMask |
sdw::Float | normalFactor |
sdw::Float | normalGMultiplier |
sdw::Vec2 | heightMask |
sdw::Float | heightFactor |
sdw::Vec2 | occlusionMask |
sdw::Vec2 | transmittanceMask |
sdw::UInt | needsGammaCorrection |
sdw::UInt | needsYInversion |
Amis | |
class | TextureConfigurations |
C3D_API castor3d::shader::TextureConfigData::TextureConfigData | ( | sdw::ShaderWriter & | writer, |
ast::expr::ExprPtr | expr, | ||
bool | enabled | ||
) |
C3D_API sdw::Vec2 castor3d::shader::TextureConfigData::convertUV | ( | sdw::ShaderWriter & | writer, |
sdw::Vec2 const & | uv | ||
) | const |
C3D_API sdw::Vec3 castor3d::shader::TextureConfigData::convertUVW | ( | sdw::ShaderWriter & | writer, |
sdw::Vec3 const & | uvw | ||
) | const |
|
static |
C3D_API sdw::Vec3 castor3d::shader::TextureConfigData::getAlbedo | ( | sdw::ShaderWriter & | writer, |
sdw::Vec4 const & | sampled, | ||
sdw::Vec3 const & | diffuse, | ||
sdw::Float | gamma | ||
) | const |
C3D_API sdw::Vec3 castor3d::shader::TextureConfigData::getDiffuse | ( | sdw::ShaderWriter & | writer, |
sdw::Vec4 const & | sampled, | ||
sdw::Vec3 const & | diffuse, | ||
sdw::Float | gamma | ||
) | const |
C3D_API sdw::Vec3 castor3d::shader::TextureConfigData::getEmissive | ( | sdw::ShaderWriter & | writer, |
sdw::Vec4 const & | sampled, | ||
sdw::Vec3 const & | emissive, | ||
sdw::Float | gamma | ||
) | const |
C3D_API sdw::Float castor3d::shader::TextureConfigData::getGlossiness | ( | sdw::ShaderWriter & | writer, |
sdw::Vec4 const & | sampled, | ||
sdw::Float const & | glossiness | ||
) | const |
C3D_API sdw::Float castor3d::shader::TextureConfigData::getHeight | ( | sdw::ShaderWriter & | writer, |
sdw::Vec4 const & | sampled, | ||
sdw::Float const & | height | ||
) | const |
C3D_API sdw::Float castor3d::shader::TextureConfigData::getMetalness | ( | sdw::ShaderWriter & | writer, |
sdw::Vec4 const & | sampled, | ||
sdw::Float const & | metalness | ||
) | const |
C3D_API sdw::Vec3 castor3d::shader::TextureConfigData::getNormal | ( | sdw::ShaderWriter & | writer, |
sdw::Vec4 const & | sampled, | ||
sdw::Mat3 const & | tbn | ||
) | const |
C3D_API sdw::Vec3 castor3d::shader::TextureConfigData::getNormal | ( | sdw::ShaderWriter & | writer, |
sdw::Vec4 const & | sampled, | ||
sdw::Vec3 const & | normal, | ||
sdw::Vec3 const & | tangent, | ||
sdw::Vec3 const & | bitangent | ||
) | const |
C3D_API sdw::Float castor3d::shader::TextureConfigData::getOcclusion | ( | sdw::ShaderWriter & | writer, |
sdw::Vec4 const & | sampled, | ||
sdw::Float const & | occlusion | ||
) | const |
C3D_API sdw::Float castor3d::shader::TextureConfigData::getOpacity | ( | sdw::ShaderWriter & | writer, |
sdw::Vec4 const & | sampled, | ||
sdw::Float const & | opacity | ||
) | const |
C3D_API sdw::Float castor3d::shader::TextureConfigData::getRoughness | ( | sdw::ShaderWriter & | writer, |
sdw::Vec4 const & | sampled, | ||
sdw::Float const & | roughness | ||
) | const |
C3D_API sdw::Float castor3d::shader::TextureConfigData::getShininess | ( | sdw::ShaderWriter & | writer, |
sdw::Vec4 const & | sampled, | ||
sdw::Float const & | shininess | ||
) | const |
C3D_API sdw::Vec3 castor3d::shader::TextureConfigData::getSpecular | ( | sdw::ShaderWriter & | writer, |
sdw::Vec4 const & | sampled, | ||
sdw::Vec3 const & | specular | ||
) | const |
C3D_API sdw::Float castor3d::shader::TextureConfigData::getTransmittance | ( | sdw::ShaderWriter & | writer, |
sdw::Vec4 const & | sampled, | ||
sdw::Float const & | transmittance | ||
) | const |
|
static |
|
friend |
sdw::Vec2 castor3d::shader::TextureConfigData::colourMask |
sdw::Vec4 castor3d::shader::TextureConfigData::colrSpec |
sdw::Vec4 castor3d::shader::TextureConfigData::emisOccl |
sdw::Vec2 castor3d::shader::TextureConfigData::emissiveMask |
sdw::Vec2 castor3d::shader::TextureConfigData::glossinessMask |
sdw::Vec4 castor3d::shader::TextureConfigData::glossOpa |
sdw::Float castor3d::shader::TextureConfigData::heightFactor |
sdw::Vec4 castor3d::shader::TextureConfigData::heightFc |
sdw::Vec2 castor3d::shader::TextureConfigData::heightMask |
sdw::Vec4 castor3d::shader::TextureConfigData::miscVals |
sdw::UInt castor3d::shader::TextureConfigData::needsGammaCorrection |
sdw::UInt castor3d::shader::TextureConfigData::needsYInversion |
sdw::Float castor3d::shader::TextureConfigData::normalFactor |
sdw::Vec4 castor3d::shader::TextureConfigData::normalFc |
sdw::Float castor3d::shader::TextureConfigData::normalGMultiplier |
sdw::Vec2 castor3d::shader::TextureConfigData::normalMask |
sdw::Vec2 castor3d::shader::TextureConfigData::occlusionMask |
sdw::Vec2 castor3d::shader::TextureConfigData::opacityMask |
sdw::Vec4 castor3d::shader::TextureConfigData::rotate |
sdw::Vec2 castor3d::shader::TextureConfigData::specularMask |
sdw::Vec4 castor3d::shader::TextureConfigData::translate |
sdw::Vec2 castor3d::shader::TextureConfigData::transmittanceMask |
sdw::Vec4 castor3d::shader::TextureConfigData::trnsDumm |