SushiEngine::Simulation::IMaterialSource
resolve_material
virtual bool resolve_material(const Database::AssetId &asset, Render::Material &out) const =0Parameters
| Name | Type |
|---|---|
asset | const Database::AssetId & |
out | Render::Material & |
Returns
bool
False when asset resolves to nothing; the slot then keeps the id and resolves to a default material rather than clearing the binding, so a temporarily-missing asset (an import still running, a deleted file not yet re-pointed) does not silently drop the author's intent.
Description
Resolves an asset id to its material.
See also
engine/world/simulation/include/DRAWING.md

