Documentation
    Preparing search index...

    Type Alias SurfaceMaterial

    SurfaceMaterial: UnlitMaterial | LitMaterial

    The materials a plain Renderable shades a surface with (§57) — the default of its M type parameter, and the reason a Renderable variable still offers setColor after the base landed.

    SpriteMaterial is deliberately not in it: a sprite carries a texture, derives its own quad, and is a Renderable<SpriteMaterial> (§55's Sprite), so admitting it here would take color off every ordinary renderable's material for a case that has its own class.