Contents

SushiEngine::Simulation::IWorldEditor

material

virtual Render::Material material(EntityId id, std::size_t index) const =0

Parameters

NameType
idEntityId
indexstd::size_t

Returns

Render::Material

The material as authored. Colour is the material's own – the entity's Tint is no longer folded into albedo here.

Description

Returns the material painting one of the entity's submeshes.

See also

engine/world/simulation/include/EDITOR.md