Download

No attribute slots left in LocalVertexFactory input

I’d like to pass a color to every instance of a static mesh, e.g. a color value per foliage instance. The vertex factory of the instancing code uses FVertexFactoryInput in LocalVertexFactory.usf.
In this input struct, all 16 attribute slots are used up.
What can I do to pass the color from the instance buffer to the shader?