class
SushiEngine::Simulation::MaterialSlot
Holds a material that is either edited in place or bound to a shared asset.
- Declared in
engine/world/simulation/include/SushiEngine/simulation/material_slot.hpp
See also
engine/world/simulation/include/DRAWING.md
Public Methods
MaterialSlot | An unbound slot with a default-constructed material. |
is_bound | True while the slot is bound to an asset. |
asset | The asset this slot is bound to, if any. |
has_resolved | Returns whether resolve has run since the slot was last bound or overridden. |
resolved | Returns the slot's current resolved material. |
set_local | Writes the resolved material directly, while unbound. |
bind | Binds the slot to |
unbind | Unbinds the slot, keeping its last resolved value as the local material. |
resolve | Re-resolves the material against |
overrides | Returns the fields this entity differs from its asset in. |
set_overrides | Replaces the override set. |
texture_assets | Returns the asset ids this slot's texture maps were loaded from. |
set_texture_assets | Replaces the texture asset record. |
Static Methods
local | Builds an unbound slot that owns |
bound | Builds a slot bound to |

