-
I'm a UE user and currently researching the Stride features for future works. I read the documents about material and archetype part, but it seems missing description about how they work in C#. Espeacially, I need to edit the material's attributes such as diffuse color by CPU logics. Can you provide some samples or documents for this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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 To understand the shader inheritance hierarchy, you can use the shader explorer. |
Beta Was this translation helpful? Give feedback.
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
orComputeFloat
. These shaders can use thestreams.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.