#include <material.h>
Public Member Functions | |
~UnlitMaterial () | |
void | SetColor (Color color) |
void | SetColorTexture (std::shared_ptr< Texture > color_texture) |
MaterialType | GetMaterialType () const override |
void | BindToCommand (const SceneContext &scene_context, HostBuffer &buffer, RenderPass &pass) const override |
![]() | |
virtual | ~Material () |
void | SetVertexColorWeight (Scalar weight) |
void | SetBlendConfig (BlendConfig blend_config) |
void | SetStencilConfig (StencilConfig stencil_config) |
void | SetTranslucent (bool is_translucent) |
SceneContextOptions | GetContextOptions (const RenderPass &pass) const |
Static Public Member Functions | |
static std::unique_ptr< UnlitMaterial > | MakeFromFlatbuffer (const fb::Material &material, const std::vector< std::shared_ptr< Texture >> &textures) |
![]() | |
static std::unique_ptr< Material > | MakeFromFlatbuffer (const fb::Material &material, const std::vector< std::shared_ptr< Texture >> &textures) |
static std::unique_ptr< UnlitMaterial > | MakeUnlit () |
static std::unique_ptr< PhysicallyBasedMaterial > | MakePhysicallyBased () |
Additional Inherited Members | |
![]() | |
Scalar | vertex_color_weight_ = 1 |
BlendConfig | blend_config_ |
StencilConfig | stencil_config_ |
bool | is_translucent_ = false |
Definition at line 73 of file material.h.
|
default |
|
overridevirtual |
Implements impeller::scene::Material.
Definition at line 110 of file material.cc.
References impeller::HostBuffer::EmplaceUniform(), impeller::scene::SceneContext::GetContext(), impeller::scene::SceneContext::GetPlaceholderTexture(), impeller::kLinear, impeller::SamplerDescriptor::label, impeller::SamplerDescriptor::mag_filter, impeller::SamplerDescriptor::min_filter, impeller::SamplerDescriptor::mip_filter, and impeller::scene::Material::vertex_color_weight_.
|
overridevirtual |
Implements impeller::scene::Material.
Definition at line 105 of file material.cc.
References impeller::scene::kUnlit.
|
static |
Definition at line 71 of file material.cc.
References impeller::scene::Material::MakeUnlit(), textures, impeller::scene::importer::ToColor(), and VALIDATION_LOG.
Referenced by impeller::scene::Material::MakeFromFlatbuffer().
void impeller::scene::UnlitMaterial::SetColor | ( | Color | color | ) |
Definition at line 96 of file material.cc.
void impeller::scene::UnlitMaterial::SetColorTexture | ( | std::shared_ptr< Texture > | color_texture | ) |
Definition at line 100 of file material.cc.