Unravel Engine C++ Reference
|
Class for physically-based rendering (PBR) materials. More...
#include <material.h>
Public Member Functions | |
auto | clone () const -> std::shared_ptr< material > override |
auto | get_base_color () const -> const math::color & |
Gets the base color of the material. | |
void | set_base_color (const math::color &val) |
Sets the base color of the material. | |
auto | get_subsurface_color () const -> const math::color & |
Gets the subsurface color of the material. | |
void | set_subsurface_color (const math::color &val) |
Sets the subsurface color of the material. | |
auto | get_emissive_color () const -> const math::color & |
Gets the emissive color of the material. | |
void | set_emissive_color (const math::color &val) |
Sets the emissive color of the material. | |
auto | get_roughness () const -> float |
Gets the roughness of the material. | |
void | set_roughness (float roughness) |
Sets the roughness of the material. | |
auto | get_metalness () const -> float |
Gets the metalness of the material. | |
void | set_metalness (float metalness) |
Sets the metalness of the material. | |
auto | get_bumpiness () const -> float |
Gets the bumpiness of the material. | |
void | set_bumpiness (float bumpiness) |
Sets the bumpiness of the material. | |
auto | get_alpha_test_value () const -> float |
Gets the alpha test value of the material. | |
void | set_alpha_test_value (float alpha_test_value) |
Sets the alpha test value of the material. | |
auto | get_surface_data () const -> const math::vec4 & |
Gets the surface data of the material. | |
auto | get_surface_data2 () const -> math::vec4 |
Gets additional surface data for the material. | |
auto | metalness_roughness_combined () const -> bool |
auto | get_tiling () const -> const math::vec2 & |
Gets the tiling factor of the material. | |
void | set_tiling (const math::vec2 &tiling) |
Sets the tiling factor of the material. | |
auto | get_dither_threshold () const -> const math::vec2 & |
Gets the dither threshold of the material. | |
void | set_dither_threshold (const math::vec2 &threshold) |
Sets the dither threshold of the material. | |
auto | get_color_map () const -> const asset_handle< gfx::texture > & |
Gets the color map of the material. | |
void | set_color_map (const asset_handle< gfx::texture > &val) |
Sets the color map of the material. | |
auto | get_normal_map () const -> const asset_handle< gfx::texture > & |
Gets the normal map of the material. | |
void | set_normal_map (const asset_handle< gfx::texture > &val) |
Sets the normal map of the material. | |
auto | get_roughness_map () const -> const asset_handle< gfx::texture > & |
Gets the roughness map of the material. | |
void | set_roughness_map (const asset_handle< gfx::texture > &val) |
Sets the roughness map of the material. | |
auto | get_metalness_map () const -> const asset_handle< gfx::texture > & |
Gets the metalness map of the material. | |
void | set_metalness_map (const asset_handle< gfx::texture > &val) |
Sets the metalness map of the material. | |
auto | get_ao_map () const -> const asset_handle< gfx::texture > & |
Gets the ambient occlusion map of the material. | |
void | set_ao_map (const asset_handle< gfx::texture > &val) |
Sets the ambient occlusion map of the material. | |
auto | get_emissive_map () const -> const asset_handle< gfx::texture > & |
Gets the emissive map of the material. | |
void | set_emissive_map (const asset_handle< gfx::texture > &val) |
Sets the emissive map of the material. | |
![]() | |
virtual auto | get_meta_type () const -> entt::meta_type |
auto | is () const -> bool |
auto | is (const entt::meta_type &type) const -> bool |
virtual auto | as_derived () -> entt::meta_any |
Additional Inherited Members | |
![]() | |
static auto | get_static_meta_type () -> entt::meta_type |
Class for physically-based rendering (PBR) materials.
Definition at line 99 of file material.h.
|
override |
Definition at line 74 of file material.cpp.
|
inline |
Gets the alpha test value of the material.
Definition at line 218 of file material.h.
|
inline |
Gets the ambient occlusion map of the material.
Definition at line 371 of file material.h.
|
inline |
Gets the base color of the material.
Definition at line 110 of file material.h.
|
inline |
Gets the bumpiness of the material.
Definition at line 200 of file material.h.
|
inline |
Gets the color map of the material.
Definition at line 299 of file material.h.
|
inline |
Gets the dither threshold of the material.
Definition at line 281 of file material.h.
|
inline |
Gets the emissive color of the material.
Definition at line 146 of file material.h.
|
inline |
Gets the emissive map of the material.
Definition at line 389 of file material.h.
|
inline |
Gets the metalness of the material.
Definition at line 182 of file material.h.
|
inline |
Gets the metalness map of the material.
Definition at line 353 of file material.h.
|
inline |
Gets the normal map of the material.
Definition at line 317 of file material.h.
|
inline |
Gets the roughness of the material.
Definition at line 164 of file material.h.
|
inline |
Gets the roughness map of the material.
Definition at line 335 of file material.h.
|
inline |
Gets the subsurface color of the material.
Definition at line 128 of file material.h.
|
inline |
Gets the surface data of the material.
Definition at line 236 of file material.h.
|
inline |
Gets additional surface data for the material.
Definition at line 245 of file material.h.
|
inline |
Gets the tiling factor of the material.
Definition at line 263 of file material.h.
|
inline |
Definition at line 254 of file material.h.
|
inline |
Sets the alpha test value of the material.
alpha_test_value | The alpha test value to set. |
Definition at line 227 of file material.h.
|
inline |
Sets the ambient occlusion map of the material.
val | The ambient occlusion map asset handle to set. |
Definition at line 380 of file material.h.
|
inline |
Sets the base color of the material.
val | The base color to set. |
Definition at line 119 of file material.h.
|
inline |
Sets the bumpiness of the material.
bumpiness | The bumpiness value to set. |
Definition at line 209 of file material.h.
|
inline |
Sets the color map of the material.
val | The color map asset handle to set. |
Definition at line 308 of file material.h.
|
inline |
Sets the dither threshold of the material.
threshold | The dither threshold to set. |
Definition at line 290 of file material.h.
|
inline |
Sets the emissive color of the material.
val | The emissive color to set. |
Definition at line 155 of file material.h.
|
inline |
Sets the emissive map of the material.
val | The emissive map asset handle to set. |
Definition at line 398 of file material.h.
|
inline |
Sets the metalness of the material.
metalness | The metalness value to set. |
Definition at line 191 of file material.h.
|
inline |
Sets the metalness map of the material.
val | The metalness map asset handle to set. |
Definition at line 362 of file material.h.
|
inline |
Sets the normal map of the material.
val | The normal map asset handle to set. |
Definition at line 326 of file material.h.
|
inline |
Sets the roughness of the material.
roughness | The roughness value to set. |
Definition at line 173 of file material.h.
|
inline |
Sets the roughness map of the material.
val | The roughness map asset handle to set. |
Definition at line 344 of file material.h.
|
inline |
Sets the subsurface color of the material.
val | The subsurface color to set. |
Definition at line 137 of file material.h.
|
inline |
Sets the tiling factor of the material.
tiling | The tiling factor to set. |
Definition at line 272 of file material.h.