|
Euphoria
|
A material affected by light. More...
Public Member Functions | |
| DefaultMaterial (const ShaderResource &resource) | |
| void | use_shader (const RenderContext &) override |
| void | set_uniforms (const RenderContext &, const CompiledCamera &, const std::optional< m4 > &) override |
| void | bind_textures (const RenderContext &, State *states, Assets *assets) override |
| void | apply_lights (const RenderContext &, const Lights &lights, const RenderSettings &settings, State *states, Assets *assets) override |
| bool | is_transparent () const override |
Public Member Functions inherited from eu::render::Material | |
| Material ()=default | |
| virtual | ~Material ()=default |
| Material (const Material &)=delete | |
| Material (Material &&)=delete | |
| void | operator= (const Material &)=delete |
| void | operator= (Material &&)=delete |
Public Attributes | |
| const LoadedShader_Default_Container * | shader_container = nullptr |
| Rgb | color = colors::white |
| float | alpha = 1.0f |
| Rgb | ambient_tint = colors::white |
| Rgb | specular_color = colors::white |
| float | shininess = 32.0f |
| float | emissive_factor = 0.0f |
| std::shared_ptr< Texture2d > | diffuse |
| std::shared_ptr< Texture2d > | specular |
| std::shared_ptr< Texture2d > | emissive |
A material affected by light.
Definition at line 68 of file material.h.
|
explicit |
|
overridevirtual |
Implements eu::render::Material.
|
overridevirtual |
Implements eu::render::Material.
|
overridevirtual |
Implements eu::render::Material.
|
overridevirtual |
Implements eu::render::Material.
|
overridevirtual |
Implements eu::render::Material.
| float eu::render::DefaultMaterial::alpha = 1.0f |
Definition at line 72 of file material.h.
| Rgb eu::render::DefaultMaterial::ambient_tint = colors::white |
Definition at line 74 of file material.h.
| Rgb eu::render::DefaultMaterial::color = colors::white |
Definition at line 71 of file material.h.
| std::shared_ptr<Texture2d> eu::render::DefaultMaterial::diffuse |
Definition at line 79 of file material.h.
| std::shared_ptr<Texture2d> eu::render::DefaultMaterial::emissive |
Definition at line 81 of file material.h.
| float eu::render::DefaultMaterial::emissive_factor = 0.0f |
Definition at line 77 of file material.h.
| const LoadedShader_Default_Container* eu::render::DefaultMaterial::shader_container = nullptr |
Definition at line 70 of file material.h.
| float eu::render::DefaultMaterial::shininess = 32.0f |
Definition at line 76 of file material.h.
| std::shared_ptr<Texture2d> eu::render::DefaultMaterial::specular |
Definition at line 80 of file material.h.
| Rgb eu::render::DefaultMaterial::specular_color = colors::white |
Definition at line 75 of file material.h.