csharp
public interface IInstanceSourceWhere a draw's instance data is, for a feature that supplies it.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
A separate interface from IDrawSubFeature because this does not record anything — it changes two arguments of the draw call the mesh feature was going to make anyway. A sub-feature that recorded its own draw would draw the geometry twice.
Methods (2)
int InstanceCountOf(RenderSystem system, RenderObjectId id)How many instances of an object to draw, or zero to leave the draw alone.
int FirstInstanceOf(RenderSystem system, RenderObjectId id)The first instance index, which is where this object's transforms start.
Used by (2)
- InstancingRenderFeatureVixen.Rendering
- MeshRenderFeatureVixen.Rendering