Base class for materials used in rendering.
More...
#include <material.h>
Base class for materials used in rendering.
Definition at line 31 of file material.h.
◆ sptr
◆ uptr
◆ wptr
◆ material()
unravel::material::material |
( |
| ) |
|
|
default |
◆ ~material()
virtual unravel::material::~material |
( |
| ) |
|
|
virtualdefault |
◆ clone()
Clones a materiial.
- Returns
- A shared_pointer to the new material
Definition at line 9 of file material.cpp.
◆ default_color_map()
Gets the default color map.
- Returns
- A reference to the default color map asset handle.
Definition at line 15 of file material.cpp.
◆ default_normal_map()
Gets the default normal map.
- Returns
- A reference to the default normal map asset handle.
Definition at line 21 of file material.cpp.
◆ get_cull_type()
auto unravel::material::get_cull_type |
( |
| ) |
const -> cull_type |
Gets the culling type of the material.
- Returns
- The culling type.
Definition at line 32 of file material.cpp.
◆ get_render_states()
auto unravel::material::get_render_states |
( |
bool | apply_cull = true, |
|
|
bool | depth_write = true, |
|
|
bool | depth_test = true ) const -> uint64_t |
|
virtual |
Gets the render states for the material.
- Parameters
-
apply_cull | Whether to apply culling. |
depth_write | Whether to write to the depth buffer. |
depth_test | Whether to perform depth testing. |
- Returns
- The render states as a 64-bit integer.
Definition at line 42 of file material.cpp.
◆ set_cull_type()
void unravel::material::set_cull_type |
( |
cull_type | val | ) |
|
Sets the culling type of the material.
- Parameters
-
val | The culling type to set. |
Definition at line 37 of file material.cpp.
◆ submit()
auto unravel::material::submit |
( |
gpu_program * | program | ) |
const -> bool |
|
virtual |
Submits the material properties to the GPU program.
- Parameters
-
program | The GPU program to submit the properties to. |
Definition at line 27 of file material.cpp.
◆ cull_type_
< The culling type for this material.
Definition at line 92 of file material.h.
The documentation for this class was generated from the following files:
- C:/Workspace/github/UnravelEngine/UnravelEngine/engine/engine/rendering/material.h
- C:/Workspace/github/UnravelEngine/UnravelEngine/engine/engine/rendering/material.cpp