Castor3D 0.15.0
Multiplatform 3D engine
|
#include <GlslMaterial.hpp>
Fonctions membres publiques | |
C3D_API | Materials (sdw::ShaderWriter &writer, PassShaders &passShaders) |
C3D_API | Materials (sdw::ShaderWriter &writer, PassShaders &passShaders, uint32_t binding, uint32_t set, bool enable=true) |
C3D_API | Materials (Engine const &engine, sdw::ShaderWriter &writer, PassShaders &passShaders, uint32_t binding, uint32_t set, uint32_t &specifics, bool enable=true) |
C3D_API void | fill (sdw::Vec3 const &albedo, sdw::Vec4 const &spcRgh, sdw::Vec4 const &colMtl, sdw::Vec4 const &crTsIr, sdw::Vec4 const &sheen, Material &material) |
C3D_API void | apply (Material const &material, SurfaceBase const &surface, sdw::Vec4 &spcRgh, sdw::Vec4 &colMtl, sdw::Vec4 &sheen) |
C3D_API ComponentModeFlags | getFilter () const |
template<typename TypeT > | |
bool | hasSpecificsBuffer () const |
template<typename TypeT > | |
BufferT< TypeT > const & | getSpecificsBuffer () const |
sdw::UInt | getPassTypesCount () const |
Material | getMaterial (sdw::UInt const &index) const |
auto & | getPassShaders () const |
C3D_API void | blendMaterials (PipelineFlags const &flags, shader::TextureConfigurations const &textureConfigs, shader::TextureAnimations const &textureAnims, sdw::Array< sdw::CombinedImage2DRgba32 > const &maps, Material &material, sdw::UInt const &materialId, sdw::Array< sdw::Vec4 > const &passMultipliers, BlendComponents &output) const |
C3D_API void | blendMaterials (VkCompareOp alphaFunc, PipelineFlags const &flags, shader::TextureConfigurations const &textureConfigs, shader::TextureAnimations const &textureAnims, sdw::Array< sdw::CombinedImage2DRgba32 > const &maps, Material &material, sdw::UInt const &materialId, sdw::Array< sdw::Vec4 > const &passMultipliers, BlendComponents &output) const |
C3D_API void | blendMaterials (bool opaque, PipelineFlags const &flags, shader::TextureConfigurations const &textureConfigs, shader::TextureAnimations const &textureAnims, sdw::Array< sdw::CombinedImage2DRgba32 > const &maps, Material &material, sdw::UInt const &materialId, sdw::Array< sdw::Vec4 > const &passMultipliers, BlendComponents &output) const |
C3D_API void | applyMaterial (PipelineFlags const &flags, TextureConfigurations const &textureConfigs, TextureAnimations const &textureAnims, sdw::Array< sdw::CombinedImage2DRgba32 > const &maps, Material const &material, BlendComponents &components) const |
Fonctions membres publiques hérités de castor3d::shader::BufferT< Material > | |
BufferT (sdw::ShaderWriter &writer, std::string blockName, std::string variableName, uint32_t binding, uint32_t set, bool enabled=true, ParamsT &&... params) | |
Material | getData (sdw::UInt const &index, ParamsT &&... params) const |
Fonctions membres publiques hérités de castor3d::shader::BufferBase | |
BufferBase (sdw::ShaderWriter &writer, std::string blockName, std::string variableName, uint32_t binding, uint32_t set, bool enabled=true) | |
sdw::UInt | getFirstCount () const |
sdw::UInt | getSecondCount () const |
sdw::UInt | getThirdCount () const |
sdw::UInt | getFourthCount () const |
sdw::UInt | getCount () const |
bool | isEnabled () const noexcept |
sdw::ShaderWriter * | getWriter () const noexcept |
Membres hérités additionnels | |
Attributs protégés hérités de castor3d::shader::BufferBase | |
sdw::ShaderWriter & | m_writer |
std::unique_ptr< sdw::StorageBuffer > | m_ssbo |
std::string | m_variableName |
C3D_API castor3d::shader::Materials::Materials | ( | sdw::ShaderWriter & | writer, |
PassShaders & | passShaders | ||
) |
C3D_API castor3d::shader::Materials::Materials | ( | sdw::ShaderWriter & | writer, |
PassShaders & | passShaders, | ||
uint32_t | binding, | ||
uint32_t | set, | ||
bool | enable = true |
||
) |
C3D_API castor3d::shader::Materials::Materials | ( | Engine const & | engine, |
sdw::ShaderWriter & | writer, | ||
PassShaders & | passShaders, | ||
uint32_t | binding, | ||
uint32_t | set, | ||
uint32_t & | specifics, | ||
bool | enable = true |
||
) |
C3D_API void castor3d::shader::Materials::apply | ( | Material const & | material, |
SurfaceBase const & | surface, | ||
sdw::Vec4 & | spcRgh, | ||
sdw::Vec4 & | colMtl, | ||
sdw::Vec4 & | sheen | ||
) |
C3D_API void castor3d::shader::Materials::applyMaterial | ( | PipelineFlags const & | flags, |
TextureConfigurations const & | textureConfigs, | ||
TextureAnimations const & | textureAnims, | ||
sdw::Array< sdw::CombinedImage2DRgba32 > const & | maps, | ||
Material const & | material, | ||
BlendComponents & | components | ||
) | const |
C3D_API void castor3d::shader::Materials::blendMaterials | ( | bool | opaque, |
PipelineFlags const & | flags, | ||
shader::TextureConfigurations const & | textureConfigs, | ||
shader::TextureAnimations const & | textureAnims, | ||
sdw::Array< sdw::CombinedImage2DRgba32 > const & | maps, | ||
Material & | material, | ||
sdw::UInt const & | materialId, | ||
sdw::Array< sdw::Vec4 > const & | passMultipliers, | ||
BlendComponents & | output | ||
) | const |
C3D_API void castor3d::shader::Materials::blendMaterials | ( | PipelineFlags const & | flags, |
shader::TextureConfigurations const & | textureConfigs, | ||
shader::TextureAnimations const & | textureAnims, | ||
sdw::Array< sdw::CombinedImage2DRgba32 > const & | maps, | ||
Material & | material, | ||
sdw::UInt const & | materialId, | ||
sdw::Array< sdw::Vec4 > const & | passMultipliers, | ||
BlendComponents & | output | ||
) | const |
C3D_API void castor3d::shader::Materials::blendMaterials | ( | VkCompareOp | alphaFunc, |
PipelineFlags const & | flags, | ||
shader::TextureConfigurations const & | textureConfigs, | ||
shader::TextureAnimations const & | textureAnims, | ||
sdw::Array< sdw::CombinedImage2DRgba32 > const & | maps, | ||
Material & | material, | ||
sdw::UInt const & | materialId, | ||
sdw::Array< sdw::Vec4 > const & | passMultipliers, | ||
BlendComponents & | output | ||
) | const |
C3D_API void castor3d::shader::Materials::fill | ( | sdw::Vec3 const & | albedo, |
sdw::Vec4 const & | spcRgh, | ||
sdw::Vec4 const & | colMtl, | ||
sdw::Vec4 const & | crTsIr, | ||
sdw::Vec4 const & | sheen, | ||
Material & | material | ||
) |
C3D_API ComponentModeFlags castor3d::shader::Materials::getFilter | ( | ) | const |
|
inline |
Références castor3d::shader::BufferT< Material >::getData().
|
inline |
|
inline |
Références castor3d::shader::BufferBase::getSecondCount().
|
inline |
|
inline |