Using Shader Chunks for minor adjustments

I want to add few custom features to the pc.StandardMaterial instead of writing a new shader, I have seen many people on forums are using Shader Chunks for the purpose. But its documentation is still unofficial, I wanted to ask is it something that’s still underdevelopment or uncertain and would be changed or removed in future?

Hi @PC_Coder,

So indeed shader chunks are an unofficial API though they have been around for a while. The way to work with them is pretty stable from what I gather, what changes from time to time are the actual shader chunk files. As the graphics engine gets updated with more features. Just keep track of the engine repo on what is getting updated and you are good to go.

Here is a sample project on how to get started:
https://developer.playcanvas.com/en/tutorials/tutorial-plasma-shader-chunk

1 Like