Introducing ShaderMaterial in Engine V2
Discover how to leverage shaders with the new ShaderMaterial in PlayCanvas Engine V2. This update brings greater flexibility and control over custom shader development.
Learn more here:
ShaderMaterial in Engine V2
8 Likes
This is gonna be Awesome !!! <3
1 Like
Thank you it was so confusing writing shaders without docs.
1 Like
which is more efficient,this or shaderchunk?
Iโm not sure I understand the question. Are you trying to compare shader generated for StandardMaterial fro chunks, or shader you construct using ShaderMaterial?
StandardMaterial lets you customize chunks, and this is great way to go if you want what standard material does, but customize it a little bit.
ShaderMaterial is design for you writing shader from scratch, in a case you need something completely custom.
Oh sorry,itโs just that I usually only use the emission channel from the material and I write a shaderChunk for it and turn everything else black.Seem like this with this shaderMaterial I wonโt need to do that anymore.
sure, if you want to use a custom shader for this, this is suitable.
Note that with the StandardMaterial you get Editor inspector to configure it, which is not something currently supported for ShaderMaterial.