Castor3D 0.12.0
Multiplatform 3D engine
|
#include <GlslTextureConfiguration.hpp>
Fonctions membres publiques | |
C3D_API | TextureConfigData (sdw::ShaderWriter &writer, ast::expr::ExprPtr expr, bool enabled) |
SDW_DeclStructInstance (C3D_API, TextureConfigData) | |
C3D_API void | computeGeometryMapContribution (Utils &utils, PassFlags const &passFlags, TextureFlags const &textureFlags, std::string const &name, shader::TextureAnimData const &anim, sdw::CombinedImage2DRgba32 const &map, sdw::Vec3 &texCoords, sdw::Float &opacity, sdw::Vec3 &normal, sdw::Vec3 &tangent, sdw::Vec3 &bitangent, sdw::Vec3 &tangentSpaceViewPosition, sdw::Vec3 &tangentSpaceFragPosition) |
C3D_API sdw::Vec4 | computeCommonMapContribution (Utils &utils, PassFlags const &passFlags, TextureFlags const &textureFlags, std::string const &name, shader::TextureAnimData const &anim, sdw::CombinedImage2DRgba32 const &map, sdw::Vec3 const &texCoords, sdw::Vec3 &emissive, sdw::Float &opacity, sdw::Float &occlusion, sdw::Float &transmittance, sdw::Vec3 &normal, sdw::Vec3 &tangent, sdw::Vec3 &bitangent, sdw::Vec3 &tangentSpaceViewPosition, sdw::Vec3 &tangentSpaceFragPosition) |
C3D_API sdw::Vec4 | computeCommonMapVoxelContribution (PassFlags const &passFlags, TextureFlags const &textureFlags, std::string const &name, shader::TextureAnimData const &anim, sdw::CombinedImage2DRgba32 const &map, sdw::Vec3 const &texCoords, sdw::Vec3 &emissive, sdw::Float &opacity, sdw::Float &occlusion) |
C3D_API void | transformUV (TextureAnimData const &config, sdw::Vec2 &uv) const |
C3D_API void | transformUVW (TextureAnimData const &config, sdw::Vec3 &uvw) const |
C3D_API sdw::Float | getGlossiness (sdw::Vec4 const &sampled, sdw::Float const &glossiness) const |
C3D_API sdw::Vec3 | getColour (sdw::Vec4 const &sampled, sdw::Vec3 const &colour) const |
C3D_API sdw::Float | getOpacity (sdw::Vec4 const &sampled, sdw::Float const &opacity) const |
C3D_API void | applyDiffuse (TextureFlags const &textureFlags, sdw::Vec4 const &sampled, sdw::Vec3 &diffuse) const |
C3D_API void | applyAlbedo (TextureFlags const &textureFlags, sdw::Vec4 const &sampled, sdw::Vec3 &diffuse) const |
C3D_API void | applyEmissive (TextureFlags const &textureFlags, sdw::Vec4 const &sampled, sdw::Vec3 &emissive) const |
C3D_API void | applySpecular (TextureFlags const &textureFlags, sdw::Vec4 const &sampled, sdw::Vec3 &specular) const |
C3D_API void | applyMetalness (TextureFlags const &textureFlags, sdw::Vec4 const &sampled, sdw::Float &metalness) const |
C3D_API void | applyShininess (TextureFlags const &textureFlags, sdw::Vec4 const &sampled, sdw::Float &shininess) const |
C3D_API void | applyRoughness (TextureFlags const &textureFlags, sdw::Vec4 const &sampled, sdw::Float &roughness) const |
C3D_API void | applyOpacity (TextureFlags const &textureFlags, sdw::Vec4 const &sampled, sdw::Float &opacity) const |
C3D_API void | applyNormal (TextureFlags const &textureFlags, sdw::Vec4 const &sampled, sdw::Mat3 const &tbn, sdw::Vec3 &normal) const |
C3D_API void | applyNormal (TextureFlags const &textureFlags, sdw::Vec4 const &sampled, sdw::Vec3 const &normal, sdw::Vec3 const &tangent, sdw::Vec3 const &bitangent, sdw::Vec3 &result) const |
C3D_API void | applyHeight (TextureFlags const &textureFlags, sdw::Vec4 const &sampled, sdw::Float &height) const |
C3D_API void | applyOcclusion (TextureFlags const &textureFlags, sdw::Vec4 const &sampled, sdw::Float &occlusion) const |
C3D_API void | applyTransmittance (TextureFlags const &textureFlags, sdw::Vec4 const &sampled, sdw::Float &transmittance) const |
sdw::Boolean | isDiffuse () const |
sdw::Boolean | isAlbedo () const |
sdw::Boolean | isEmissive () const |
sdw::Boolean | isSpecular () const |
sdw::Boolean | isMetalness () const |
sdw::Boolean | isShininess () const |
sdw::Boolean | isGlossiness () const |
sdw::Boolean | isRoughness () const |
sdw::Boolean | isOcclusion () const |
sdw::Boolean | isTransmittance () const |
sdw::Boolean | isOpacity () const |
sdw::Boolean | isNormal () const |
sdw::Boolean | isHeight () const |
sdw::Boolean | isGeometry () const |
sdw::Boolean | isGeometryOnly () const |
Fonctions membres publiques statiques | |
static C3D_API std::unique_ptr< sdw::Struct > | declare (sdw::ShaderWriter &writer) |
static C3D_API ast::type::BaseStructPtr | makeType (ast::type::TypesCache &cache) |
Attributs publics | |
sdw::Vec4 | colOpa |
sdw::Vec4 | spcShn |
sdw::Vec4 | metRgh |
sdw::Vec4 | emsOcc |
sdw::Vec4 | trsDum |
sdw::Vec4 | nmlFcr |
sdw::Vec4 | hgtFcr |
sdw::Vec4 | mscVls |
sdw::Vec4 | texTrn |
sdw::Vec4 | texRot |
sdw::Vec4 | texScl |
sdw::Vec4 | tleSet |
sdw::Float | colEnbl |
sdw::Float | colMask |
sdw::Float | opaEnbl |
sdw::Float | opaMask |
sdw::Float | spcEnbl |
sdw::Float | spcMask |
sdw::Float | shnEnbl |
sdw::Float | shnMask |
sdw::Float | metEnbl |
sdw::Float | metMask |
sdw::Float | rghEnbl |
sdw::Float | rghMask |
sdw::Float | emsEnbl |
sdw::Float | emsMask |
sdw::Float | occEnbl |
sdw::Float | occMask |
sdw::Float | trsEnbl |
sdw::Float | trsMask |
sdw::Float | nmlEnbl |
sdw::Float | nmlMask |
sdw::Float | nmlFact |
sdw::Float | nmlGMul |
sdw::Float | hgtEnbl |
sdw::Float | hgtMask |
sdw::Float | hgtFact |
sdw::Float | fneedYI |
sdw::UInt | needsYI |
sdw::Boolean | isTrnfAnim |
sdw::Boolean | isTileAnim |
Amis | |
class | TextureConfigurations |
C3D_API castor3d::shader::TextureConfigData::TextureConfigData | ( | sdw::ShaderWriter & | writer, |
ast::expr::ExprPtr | expr, | ||
bool | enabled | ||
) |
C3D_API void castor3d::shader::TextureConfigData::applyAlbedo | ( | TextureFlags const & | textureFlags, |
sdw::Vec4 const & | sampled, | ||
sdw::Vec3 & | diffuse | ||
) | const |
C3D_API void castor3d::shader::TextureConfigData::applyDiffuse | ( | TextureFlags const & | textureFlags, |
sdw::Vec4 const & | sampled, | ||
sdw::Vec3 & | diffuse | ||
) | const |
C3D_API void castor3d::shader::TextureConfigData::applyEmissive | ( | TextureFlags const & | textureFlags, |
sdw::Vec4 const & | sampled, | ||
sdw::Vec3 & | emissive | ||
) | const |
C3D_API void castor3d::shader::TextureConfigData::applyHeight | ( | TextureFlags const & | textureFlags, |
sdw::Vec4 const & | sampled, | ||
sdw::Float & | height | ||
) | const |
C3D_API void castor3d::shader::TextureConfigData::applyMetalness | ( | TextureFlags const & | textureFlags, |
sdw::Vec4 const & | sampled, | ||
sdw::Float & | metalness | ||
) | const |
C3D_API void castor3d::shader::TextureConfigData::applyNormal | ( | TextureFlags const & | textureFlags, |
sdw::Vec4 const & | sampled, | ||
sdw::Mat3 const & | tbn, | ||
sdw::Vec3 & | normal | ||
) | const |
C3D_API void castor3d::shader::TextureConfigData::applyNormal | ( | TextureFlags const & | textureFlags, |
sdw::Vec4 const & | sampled, | ||
sdw::Vec3 const & | normal, | ||
sdw::Vec3 const & | tangent, | ||
sdw::Vec3 const & | bitangent, | ||
sdw::Vec3 & | result | ||
) | const |
C3D_API void castor3d::shader::TextureConfigData::applyOcclusion | ( | TextureFlags const & | textureFlags, |
sdw::Vec4 const & | sampled, | ||
sdw::Float & | occlusion | ||
) | const |
C3D_API void castor3d::shader::TextureConfigData::applyOpacity | ( | TextureFlags const & | textureFlags, |
sdw::Vec4 const & | sampled, | ||
sdw::Float & | opacity | ||
) | const |
C3D_API void castor3d::shader::TextureConfigData::applyRoughness | ( | TextureFlags const & | textureFlags, |
sdw::Vec4 const & | sampled, | ||
sdw::Float & | roughness | ||
) | const |
C3D_API void castor3d::shader::TextureConfigData::applyShininess | ( | TextureFlags const & | textureFlags, |
sdw::Vec4 const & | sampled, | ||
sdw::Float & | shininess | ||
) | const |
C3D_API void castor3d::shader::TextureConfigData::applySpecular | ( | TextureFlags const & | textureFlags, |
sdw::Vec4 const & | sampled, | ||
sdw::Vec3 & | specular | ||
) | const |
C3D_API void castor3d::shader::TextureConfigData::applyTransmittance | ( | TextureFlags const & | textureFlags, |
sdw::Vec4 const & | sampled, | ||
sdw::Float & | transmittance | ||
) | const |
C3D_API sdw::Vec4 castor3d::shader::TextureConfigData::computeCommonMapContribution | ( | Utils & | utils, |
PassFlags const & | passFlags, | ||
TextureFlags const & | textureFlags, | ||
std::string const & | name, | ||
shader::TextureAnimData const & | anim, | ||
sdw::CombinedImage2DRgba32 const & | map, | ||
sdw::Vec3 const & | texCoords, | ||
sdw::Vec3 & | emissive, | ||
sdw::Float & | opacity, | ||
sdw::Float & | occlusion, | ||
sdw::Float & | transmittance, | ||
sdw::Vec3 & | normal, | ||
sdw::Vec3 & | tangent, | ||
sdw::Vec3 & | bitangent, | ||
sdw::Vec3 & | tangentSpaceViewPosition, | ||
sdw::Vec3 & | tangentSpaceFragPosition | ||
) |
C3D_API sdw::Vec4 castor3d::shader::TextureConfigData::computeCommonMapVoxelContribution | ( | PassFlags const & | passFlags, |
TextureFlags const & | textureFlags, | ||
std::string const & | name, | ||
shader::TextureAnimData const & | anim, | ||
sdw::CombinedImage2DRgba32 const & | map, | ||
sdw::Vec3 const & | texCoords, | ||
sdw::Vec3 & | emissive, | ||
sdw::Float & | opacity, | ||
sdw::Float & | occlusion | ||
) |
C3D_API void castor3d::shader::TextureConfigData::computeGeometryMapContribution | ( | Utils & | utils, |
PassFlags const & | passFlags, | ||
TextureFlags const & | textureFlags, | ||
std::string const & | name, | ||
shader::TextureAnimData const & | anim, | ||
sdw::CombinedImage2DRgba32 const & | map, | ||
sdw::Vec3 & | texCoords, | ||
sdw::Float & | opacity, | ||
sdw::Vec3 & | normal, | ||
sdw::Vec3 & | tangent, | ||
sdw::Vec3 & | bitangent, | ||
sdw::Vec3 & | tangentSpaceViewPosition, | ||
sdw::Vec3 & | tangentSpaceFragPosition | ||
) |
|
static |
C3D_API sdw::Vec3 castor3d::shader::TextureConfigData::getColour | ( | sdw::Vec4 const & | sampled, |
sdw::Vec3 const & | colour | ||
) | const |
C3D_API sdw::Float castor3d::shader::TextureConfigData::getGlossiness | ( | sdw::Vec4 const & | sampled, |
sdw::Float const & | glossiness | ||
) | const |
C3D_API sdw::Float castor3d::shader::TextureConfigData::getOpacity | ( | sdw::Vec4 const & | sampled, |
sdw::Float const & | opacity | ||
) | const |
|
inline |
Références colEnbl.
|
inline |
Références colEnbl.
|
inline |
Références emsEnbl.
|
inline |
|
inline |
|
inline |
Références shnEnbl.
|
inline |
Références hgtEnbl.
|
inline |
Références metEnbl.
|
inline |
Références nmlEnbl.
|
inline |
Références occEnbl.
|
inline |
Références opaEnbl.
|
inline |
Références rghEnbl.
|
inline |
Références shnEnbl.
|
inline |
Références spcEnbl.
|
inline |
Références trsEnbl.
|
static |
castor3d::shader::TextureConfigData::SDW_DeclStructInstance | ( | C3D_API | , |
TextureConfigData | |||
) |
C3D_API void castor3d::shader::TextureConfigData::transformUV | ( | TextureAnimData const & | config, |
sdw::Vec2 & | uv | ||
) | const |
C3D_API void castor3d::shader::TextureConfigData::transformUVW | ( | TextureAnimData const & | config, |
sdw::Vec3 & | uvw | ||
) | const |
|
friend |
sdw::Float castor3d::shader::TextureConfigData::colEnbl |
Référencé par isAlbedo(), isDiffuse(), et isGeometryOnly().
sdw::Float castor3d::shader::TextureConfigData::colMask |
sdw::Vec4 castor3d::shader::TextureConfigData::colOpa |
sdw::Float castor3d::shader::TextureConfigData::emsEnbl |
Référencé par isEmissive(), et isGeometryOnly().
sdw::Float castor3d::shader::TextureConfigData::emsMask |
sdw::Vec4 castor3d::shader::TextureConfigData::emsOcc |
sdw::Float castor3d::shader::TextureConfigData::fneedYI |
sdw::Float castor3d::shader::TextureConfigData::hgtEnbl |
Référencé par isGeometry(), et isHeight().
sdw::Float castor3d::shader::TextureConfigData::hgtFact |
sdw::Vec4 castor3d::shader::TextureConfigData::hgtFcr |
sdw::Float castor3d::shader::TextureConfigData::hgtMask |
sdw::Boolean castor3d::shader::TextureConfigData::isTileAnim |
sdw::Boolean castor3d::shader::TextureConfigData::isTrnfAnim |
sdw::Float castor3d::shader::TextureConfigData::metEnbl |
Référencé par isGeometryOnly(), et isMetalness().
sdw::Float castor3d::shader::TextureConfigData::metMask |
sdw::Vec4 castor3d::shader::TextureConfigData::metRgh |
sdw::Vec4 castor3d::shader::TextureConfigData::mscVls |
sdw::UInt castor3d::shader::TextureConfigData::needsYI |
sdw::Float castor3d::shader::TextureConfigData::nmlEnbl |
Référencé par isGeometry(), et isNormal().
sdw::Float castor3d::shader::TextureConfigData::nmlFact |
sdw::Vec4 castor3d::shader::TextureConfigData::nmlFcr |
sdw::Float castor3d::shader::TextureConfigData::nmlGMul |
sdw::Float castor3d::shader::TextureConfigData::nmlMask |
sdw::Float castor3d::shader::TextureConfigData::occEnbl |
Référencé par isGeometryOnly(), et isOcclusion().
sdw::Float castor3d::shader::TextureConfigData::occMask |
sdw::Float castor3d::shader::TextureConfigData::opaEnbl |
Référencé par isGeometry(), et isOpacity().
sdw::Float castor3d::shader::TextureConfigData::opaMask |
sdw::Float castor3d::shader::TextureConfigData::rghEnbl |
Référencé par isGeometryOnly(), et isRoughness().
sdw::Float castor3d::shader::TextureConfigData::rghMask |
sdw::Float castor3d::shader::TextureConfigData::shnEnbl |
Référencé par isGeometryOnly(), isGlossiness(), et isShininess().
sdw::Float castor3d::shader::TextureConfigData::shnMask |
sdw::Float castor3d::shader::TextureConfigData::spcEnbl |
Référencé par isGeometryOnly(), et isSpecular().
sdw::Float castor3d::shader::TextureConfigData::spcMask |
sdw::Vec4 castor3d::shader::TextureConfigData::spcShn |
sdw::Vec4 castor3d::shader::TextureConfigData::texRot |
sdw::Vec4 castor3d::shader::TextureConfigData::texScl |
sdw::Vec4 castor3d::shader::TextureConfigData::texTrn |
sdw::Vec4 castor3d::shader::TextureConfigData::tleSet |
sdw::Vec4 castor3d::shader::TextureConfigData::trsDum |
sdw::Float castor3d::shader::TextureConfigData::trsEnbl |
Référencé par isGeometryOnly(), et isTransmittance().
sdw::Float castor3d::shader::TextureConfigData::trsMask |