Skip to content

Instanced material equivalent #1626

Answered by tebjan
haruby365 asked this question in Q&A
Discussion options

You must be logged in to vote

Stride supports 3 ways of passing instancing transformations to the material.

The shader language supports composition, so each material property can be customized with a shader, for example inheriting from ComputeColor or ComputeFloat. These shaders can use the streams.InstanceID variable to load values from a buffer or contact array. See also the shader sample in the launcher, if you study it, it should be clear how to use it.

To understand the shader inheritance hierarchy, you can use the shader explorer.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@haruby365
Comment options

Answer selected by haruby365
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants