#include <material.h>
Definition at line 27 of file material.h.
◆ ~Material()
impeller::scene::Material::~Material |
( |
| ) |
|
|
virtualdefault |
◆ BindToCommand()
◆ GetContextOptions()
Definition at line 62 of file material.cc.
62 {
63
64 return {.sample_count = pass.GetRenderTarget().GetSampleCount()};
65}
◆ GetMaterialType()
virtual MaterialType impeller::scene::Material::GetMaterialType |
( |
| ) |
const |
|
pure virtual |
◆ MakeFromFlatbuffer()
std::unique_ptr< Material > impeller::scene::Material::MakeFromFlatbuffer |
( |
const fb::Material & |
material, |
|
|
const std::vector< std::shared_ptr< Texture > > & |
textures |
|
) |
| |
|
static |
Definition at line 27 of file material.cc.
29 {
30 switch (material.type()) {
31 case fb::MaterialType::kUnlit:
33 case fb::MaterialType::kPhysicallyBased:
35 }
36}
static std::unique_ptr< PhysicallyBasedMaterial > MakeFromFlatbuffer(const fb::Material &material, const std::vector< std::shared_ptr< Texture > > &textures)
static std::unique_ptr< UnlitMaterial > MakeFromFlatbuffer(const fb::Material &material, const std::vector< std::shared_ptr< Texture > > &textures)
◆ MakePhysicallyBased()
Definition at line 42 of file material.cc.
42 {
43 return std::make_unique<PhysicallyBasedMaterial>();
44}
◆ MakeUnlit()
std::unique_ptr< UnlitMaterial > impeller::scene::Material::MakeUnlit |
( |
| ) |
|
|
static |
Definition at line 38 of file material.cc.
38 {
39 return std::make_unique<UnlitMaterial>();
40}
◆ SetBlendConfig()
void impeller::scene::Material::SetBlendConfig |
( |
BlendConfig |
blend_config | ) |
|
Definition at line 50 of file material.cc.
50 {
52}
BlendConfig blend_config_
◆ SetStencilConfig()
void impeller::scene::Material::SetStencilConfig |
( |
StencilConfig |
stencil_config | ) |
|
Definition at line 54 of file material.cc.
54 {
56}
StencilConfig stencil_config_
◆ SetTranslucent()
void impeller::scene::Material::SetTranslucent |
( |
bool |
is_translucent | ) |
|
◆ SetVertexColorWeight()
void impeller::scene::Material::SetVertexColorWeight |
( |
Scalar |
weight | ) |
|
Definition at line 46 of file material.cc.
46 {
48}
Scalar vertex_color_weight_
◆ blend_config_
◆ is_translucent_
bool impeller::scene::Material::is_translucent_ = false |
|
protected |
◆ stencil_config_
◆ vertex_color_weight_
Scalar impeller::scene::Material::vertex_color_weight_ = 1 |
|
protected |
The documentation for this class was generated from the following files: