![]() |
ezEngine Release 26.3
|
#include <MaterialResource.h>
Classes | |
| struct | Parameter |
| A shader parameter name-value pair. More... | |
| struct | Texture2DBinding |
| A 2D texture binding. More... | |
| struct | TextureCubeBinding |
| A cube texture binding. More... | |
Public Member Functions | |
| void | Clear () |
| bool | operator== (const ezMaterialResourceDescriptor &other) const |
| EZ_FORCE_INLINE bool | operator!= (const ezMaterialResourceDescriptor &other) const |
Public Attributes | |
| ezMaterialResourceHandle | m_hBaseMaterial |
| Base material to inherit from (optional). | |
| ezHashedString | m_sSurface |
| Surface type for physics/collision properties. | |
| ezShaderResourceHandle | m_hShader |
| Shader used for rendering. | |
| ezDynamicArray< ezPermutationVar > | m_PermutationVars |
| Shader permutation variable values. | |
| ezDynamicArray< Parameter > | m_Parameters |
| Shader constant parameters. | |
| ezDynamicArray< Texture2DBinding > | m_Texture2DBindings |
| 2D texture bindings. | |
| ezDynamicArray< TextureCubeBinding > | m_TextureCubeBindings |
| Cube texture bindings. | |
| ezRenderData::Category | m_RenderDataCategory |
| Render data category (opaque, transparent, etc.). | |
Descriptor for creating material resources.
Materials can inherit from a base material and override shader, parameters, and textures. Supports shader permutation variables, numeric/color parameters, and 2D/cube texture bindings.