Engine → Renderer → material_asset.h
material_desc
Syntax
struct CONJURE_API material_desc
Variables
| Access | Name | Type | Default | Description |
| public | alphaCutoff | f32 | 0.5f | |
| public | alphaMode | alpha_mode | alpha_mode::SOLID | |
| public | baseColourFactor | math::vec4 | math::vec4(1.0f) | |
| public | doubleSided | bool | false | |
| public | emissiveFactor | math::vec3 | math::vec3(0.0f) | |
| public | emissiveStrength | f32 | 1.0f | |
| public | metallicFactor | f32 | 1.0f | |
| public | normalScale | f32 | 1.0f | |
| public | occlusionStrength | f32 | 1.0f | |
| public | roughnessFactor | f32 | 1.0f | |
| public | textures | std::array<assets::asset_ref<texture_asset>, MATERIAL_TEXTURE_SLOTS> | {} | |
| public | textureUvSets | std::array<u8, MATERIAL_TEXTURE_SLOTS> | {0, 0, 0, 0, 0} | |
| public | unlit | bool | false | |
Operator Overloads
Public
operator==
[[nodiscard]] bool operator==(
const material_desc &other) const noexcept;