Flutter Engine
The Flutter Engine
|
#include <material.h>
Public Member Functions | |
~PhysicallyBasedMaterial () | |
void | SetAlbedo (Color albedo) |
void | SetRoughness (Scalar roughness) |
void | SetMetallic (Scalar metallic) |
void | SetAlbedoTexture (std::shared_ptr< Texture > albedo_texture) |
void | SetMetallicRoughnessTexture (std::shared_ptr< Texture > metallic_roughness_texture) |
void | SetNormalTexture (std::shared_ptr< Texture > normal_texture) |
void | SetOcclusionTexture (std::shared_ptr< Texture > occlusion_texture) |
void | SetEnvironmentMap (std::shared_ptr< Texture > environment_map) |
MaterialType | GetMaterialType () const override |
void | BindToCommand (const SceneContext &scene_context, HostBuffer &buffer, RenderPass &pass) const override |
Public Member Functions inherited from impeller::scene::Material | |
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 |
virtual MaterialType | GetMaterialType () const =0 |
virtual void | BindToCommand (const SceneContext &scene_context, HostBuffer &buffer, RenderPass &pass) const =0 |
Static Public Member Functions | |
static std::unique_ptr< PhysicallyBasedMaterial > | MakeFromFlatbuffer (const fb::Material &material, const std::vector< std::shared_ptr< Texture > > &textures) |
Static Public Member Functions inherited from impeller::scene::Material | |
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 | |
Protected Attributes inherited from impeller::scene::Material | |
Scalar | vertex_color_weight_ = 1 |
BlendConfig | blend_config_ |
StencilConfig | stencil_config_ |
bool | is_translucent_ = false |
Definition at line 98 of file material.h.
|
default |
|
overridevirtual |
|
overridevirtual |
Implements impeller::scene::Material.
Definition at line 217 of file material.cc.
|
static |
StandardMaterial
Definition at line 137 of file material.cc.
void impeller::scene::PhysicallyBasedMaterial::SetAlbedo | ( | Color | albedo | ) |
Definition at line 179 of file material.cc.
void impeller::scene::PhysicallyBasedMaterial::SetAlbedoTexture | ( | std::shared_ptr< Texture > | albedo_texture | ) |
Definition at line 191 of file material.cc.
void impeller::scene::PhysicallyBasedMaterial::SetEnvironmentMap | ( | std::shared_ptr< Texture > | environment_map | ) |
Definition at line 211 of file material.cc.
void impeller::scene::PhysicallyBasedMaterial::SetMetallic | ( | Scalar | metallic | ) |
Definition at line 187 of file material.cc.
void impeller::scene::PhysicallyBasedMaterial::SetMetallicRoughnessTexture | ( | std::shared_ptr< Texture > | metallic_roughness_texture | ) |
Definition at line 196 of file material.cc.
void impeller::scene::PhysicallyBasedMaterial::SetNormalTexture | ( | std::shared_ptr< Texture > | normal_texture | ) |
Definition at line 201 of file material.cc.
void impeller::scene::PhysicallyBasedMaterial::SetOcclusionTexture | ( | std::shared_ptr< Texture > | occlusion_texture | ) |
Definition at line 206 of file material.cc.
void impeller::scene::PhysicallyBasedMaterial::SetRoughness | ( | Scalar | roughness | ) |
Definition at line 183 of file material.cc.