Castor3D
..
|
Espaces de nommage | |
legacy | |
pbr | |
Classes | |
struct | BaseMaterial |
struct | DirectionalLight |
class | Fog |
struct | FragmentInput |
struct | LegacyMaterial |
class | LegacyMaterials |
struct | Light |
class | LightingModel |
class | Materials |
class | MetallicBrdfLightingModel |
struct | MetallicRoughnessMaterial |
struct | OutputComponents |
class | PbrMRMaterials |
class | PbrSGMaterials |
class | PhongLightingModel |
class | PhongReflectionModel |
struct | PointLight |
class | Shadow |
class | SpecularBrdfLightingModel |
struct | SpecularGlossinessMaterial |
struct | SpotLight |
class | SssTransmittance |
Définitions de type | |
using | ParallaxFunction = glsl::Function< glsl::Vec2, glsl::InParam< glsl::Vec2 >, glsl::InParam< glsl::Vec3 > > |
using | ParallaxShadowFunction = glsl::Function< glsl::Float, glsl::InParam< glsl::Vec3 >, glsl::InParam< glsl::Vec2 >, glsl::InParam< glsl::Float > > |
Énumérations | |
enum | TypeName { TypeName::eLight = int( glsl::TypeName::eCount ), TypeName::eDirectionalLight, TypeName::ePointLight, TypeName::eSpotLight, TypeName::eMaterial, TypeName::eLegacyMaterial, TypeName::eMetallicRoughnessMaterial, TypeName::eSpecularGlossinessMaterial } |
Fonctions | |
C3D_API std::unique_ptr< Materials > | createMaterials (glsl::GlslWriter &writer, PassFlags const &passFlags) |
Crée le tampon de matériaux GLSL approprié. Plus de détails... | |
C3D_API void | applyAlphaFunc (glsl::GlslWriter &writer, ComparisonFunc alphaFunc, glsl::Float const &alpha, glsl::Float const &alphaRef) |
Ecrit la fonction d'opacité en GLSL. Plus de détails... | |
C3D_API ParallaxFunction | declareParallaxMappingFunc (glsl::GlslWriter &writer, TextureChannels const &textureFlags, ProgramFlags const &programFlags) |
C3D_API ParallaxShadowFunction | declareParallaxShadowFunc (glsl::GlslWriter &writer, TextureChannels const &textureFlags, ProgramFlags const &programFlags) |
DECLARE_GLSL_PARAMETER (Light) | |
C3D_API castor::String | paramToString (castor::String &sep, FragmentInput const &value) |
C3D_API castor::String | paramToString (castor::String &sep, OutputComponents const &value) |
C3D_API castor::String | toString (FragmentInput const &value) |
C3D_API castor::String | toString (OutputComponents const &value) |
DECLARE_SMART_PTR (BaseMaterial) | |
Variables | |
static constexpr uint32_t | SpotShadowMapCount = 10u |
static constexpr uint32_t | PointShadowMapCount = 6u |
static constexpr int | BaseLightComponentsCount = 2 |
static constexpr int | MaxLightComponentsCount = 14 |
static constexpr float | LightComponentsOffset = MaxLightComponentsCount * 0.001f |
static uint32_t constexpr | MaxMaterialsCount = 2000u |
static int constexpr | MaxMaterialComponentsCount = 6 |
castor::String const | PassBufferName = cuT( "Materials" ) |
using castor3d::shader::ParallaxFunction = typedef glsl::Function< glsl::Vec2, glsl::InParam< glsl::Vec2 >, glsl::InParam< glsl::Vec3 > > |
using castor3d::shader::ParallaxShadowFunction = typedef glsl::Function< glsl::Float, glsl::InParam< glsl::Vec3 >, glsl::InParam< glsl::Vec2 >, glsl::InParam< glsl::Float > > |
|
strong |
C3D_API void castor3d::shader::applyAlphaFunc | ( | glsl::GlslWriter & | writer, |
ComparisonFunc | alphaFunc, | ||
glsl::Float const & | alpha, | ||
glsl::Float const & | alphaRef | ||
) |
Ecrit la fonction d'opacité en GLSL.
[in] | writer | Le writer GLSL. |
alphaFunc | La fonction d'opacité. | |
[in] | alpha | La valeur d'opacité. |
[in] | alphaRef | La valeur de référence pour la comparaison alpha. |
C3D_API std::unique_ptr< Materials > castor3d::shader::createMaterials | ( | glsl::GlslWriter & | writer, |
PassFlags const & | passFlags | ||
) |
Crée le tampon de matériaux GLSL approprié.
[in] | writer | Le writer GLSL. |
passFlags | Les indicateurs de passe. |
castor3d::shader::DECLARE_GLSL_PARAMETER | ( | Light | ) |
castor3d::shader::DECLARE_SMART_PTR | ( | BaseMaterial | ) |
C3D_API ParallaxFunction castor3d::shader::declareParallaxMappingFunc | ( | glsl::GlslWriter & | writer, |
TextureChannels const & | textureFlags, | ||
ProgramFlags const & | programFlags | ||
) |
C3D_API ParallaxShadowFunction castor3d::shader::declareParallaxShadowFunc | ( | glsl::GlslWriter & | writer, |
TextureChannels const & | textureFlags, | ||
ProgramFlags const & | programFlags | ||
) |
C3D_API castor::String castor3d::shader::paramToString | ( | castor::String & | sep, |
FragmentInput const & | value | ||
) |
C3D_API castor::String castor3d::shader::paramToString | ( | castor::String & | sep, |
OutputComponents const & | value | ||
) |
C3D_API castor::String castor3d::shader::toString | ( | FragmentInput const & | value | ) |
C3D_API castor::String castor3d::shader::toString | ( | OutputComponents const & | value | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
castor::String const castor3d::shader::PassBufferName = cuT( "Materials" ) |
|
static |
|
static |