Custom diffuse models #2143
SeleDreams
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
You can extend the materials by implementing the interface and mixing in your shader. The material system is highly flexible. Just look up the diffuse models in the Stride source code, copy it, and rename it. Then it will appear there in the drop-down after it's compiled. For example: Stride.Rendering/Rendering/Materials/MaterialDiffuseLambertModelFeature.cs |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Right now, Stride seems to have hardcoded the diffuse models. I feel like that's not a good idea at all since quite a few developers might want to make their own shaders to control precisely how their object will react to light. even more when the shader doc says that shaders can be applied to all material properties. "You can use custom shaders in any material attribute" https://doc.stride3d.net/latest/en/manual/graphics/effects-and-shaders/custom-shaders.html
I feel like it would be important to allow developers to use custom shaders for lighting.
I don't really know what's the opinion of the others on this level
Beta Was this translation helpful? Give feedback.
All reactions