MaterialShaderPropertiesOverride Struct
Configuration container for overriding specific material properties. More...
Declaration
Public Member Functions Index
| void | writeUniformValues (helios::rendering::shader::UniformValueMap &uniformValueMap) const noexcept |
|
Writes this MaterialShaderPropertiesOverride's values into the given map. More... | |
Public Member Attributes Index
| std::optional< helios::math::vec4f > | baseColor |
|
Optional base color override for the material. More... | |
| std::optional< float > | roughness |
|
Optional roughness override for the material (range [0, 1]). More... | |
Description
Configuration container for overriding specific material properties.
This struct holds optional data values that can be used to override the default properties defined in MaterialShaderProperties used by a Material. Only properties for which a value is present will be applied as overrides.
This struct is mutable by design. Changing its values will impact all MaterialInstances using **this** instance.
Definition at line 29 of file MaterialShaderPropertiesOverride.ixx.
Public Member Functions
writeUniformValues()
| inline noexcept |
Writes this MaterialShaderPropertiesOverride's values into the given map.
This method is typically called **after** the Material's base properties were written into the map.
- Parameters
-
uniformValueMap Target map receiving the uniform values.
Definition at line 50 of file MaterialShaderPropertiesOverride.ixx.
References baseColor, helios::rendering::shader::MaterialBaseColor, helios::rendering::shader::MaterialRoughness and roughness.
Public Member Attributes
baseColor
|
Optional base color override for the material.
Definition at line 35 of file MaterialShaderPropertiesOverride.ixx.
Referenced by writeUniformValues.
roughness
|
Optional roughness override for the material (range [0, 1]).
Definition at line 40 of file MaterialShaderPropertiesOverride.ixx.
Referenced by writeUniformValues.
The documentation for this struct was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.