|
RavEngine
|
#include <Material.hpp>
Classes | |
| class | Manager |
Public Member Functions | |
| virtual | ~Material () |
| auto | GetMainRenderPipeline () const |
| auto | GetShadowRenderPipeline () const |
| auto | GetDepthPrepassPipeline () const |
| MeshAttributes | GetAttributes () const |
Protected Member Functions | |
| bool | IsTransparent () const |
| Material (const std::string_view name, const MaterialConfig &config) | |
| Material (const std::string_view vsh_name, const std::string_view fsh_name, const MaterialConfig &config) | |
Protected Attributes | |
| RGLRenderPipelinePtr | renderPipeline |
| RGLRenderPipelinePtr | shadowRenderPipeline |
| RGLRenderPipelinePtr | depthPrepassPipeline |
| RGLPipelineLayoutPtr | pipelineLayout |
| OpacityMode | opacityMode |
| const MeshAttributes | requiredAttributes |
Friends | |
| class | MaterialInstance |
| class | RenderEngine |
Represents the interface to a shader. Subclass to create more types of material and expose more abilities.
|
virtual |
Create the default material. Override this constructor in subclasses, and from that, invoke the protected constructor.
|
protected |
Create a material given a shader. Also registers it in the material manager
| shader | the path to the shader |