|
Crimson Engine 1.0.0
A high-performance C++20 game engine prototype showcasing a custom ECS, Vulkan renderer, and ImGui editor.
|
Represents a material component defining rendering properties. More...
#include <Material.hpp>
Public Member Functions | |
| Material (const glm::vec4 &c={ 1.f, 1.f, 1.f, 1.f }, VkDescriptorSet ds=VK_NULL_HANDLE, VkPipeline pp=VK_NULL_HANDLE) | |
| Construct a new Material object. | |
Public Attributes | |
| uint32_t | id |
| Unique identifier for this material. | |
| glm::vec4 | color { 1.0f } |
| std::string | texturePath |
| VkDescriptorSet | descriptorSet { VK_NULL_HANDLE } |
| Vulkan descriptor set representing resource bindings. | |
| VkPipeline | pipeline { VK_NULL_HANDLE } |
| Optional per-material custom Vulkan pipeline. | |
| VkPipelineLayout | pipelineLayout { VK_NULL_HANDLE } |
| Optional per-material custom Vulkan pipeline layout. | |
| TextureFilterMode | filterMode = TextureFilterMode::Bilinear |
| Texture filter mode. | |
| std::string | shaderName = "Unlit" |
| std::string | normalMapPath |
| std::string | metallicMapPath |
| float | roughness = 0.5f |
| float | metallic = 0.0f |
Represents a material component defining rendering properties.
|
inline |
Construct a new Material object.
| c | Color of the material. |
| ds | Descriptor set associated with this material. |
| pp | Custom graphics pipeline. |
| glm::vec4 Material::color { 1.0f } |
| VkDescriptorSet Material::descriptorSet { VK_NULL_HANDLE } |
Vulkan descriptor set representing resource bindings.
| TextureFilterMode Material::filterMode = TextureFilterMode::Bilinear |
Texture filter mode.
| uint32_t Material::id |
Unique identifier for this material.
| float Material::metallic = 0.0f |
| std::string Material::metallicMapPath |
| std::string Material::normalMapPath |
| VkPipeline Material::pipeline { VK_NULL_HANDLE } |
Optional per-material custom Vulkan pipeline.
| VkPipelineLayout Material::pipelineLayout { VK_NULL_HANDLE } |
Optional per-material custom Vulkan pipeline layout.
| float Material::roughness = 0.5f |
| std::string Material::shaderName = "Unlit" |
| std::string Material::texturePath |