Skip to content

IMaterial Interface

Definition

Namespace: Brine2D.Rendering

Marker interface for custom sprite materials. Implement this to carry per-sprite shader parameters or pipeline overrides.

C#
public interface IMaterial

Remarks

In this release, IMaterial is a hook for future per-sprite shader support. A material assigned to Material is stored and can be read by custom render systems, but the built-in SpriteRenderingSystem does not yet switch GPU pipelines based on the material value.

Future: when per-sprite shader support is added the renderer will query Material.PipelineKey or similar to select the correct pipeline.

Properties
Name A short name used for diagnostics and logging.