The shader chunk challenge

The shader chunk was never an official API and been one of those things that kept being kicked down the road till more recently.

We are currently in the process of getting materials into a much more stable state and also prepare on integrating a node graph shader editor to help with this type of thing.

TLDR at the moment, the chunk system is where each chunk represents some behaviour on the standard material. eg diffuse chunk for the diffuse channel, etc.

You can override each chunk from the standard behaviour to use your own bespoke behaviour.

Here’s a thread with an example of overriding the diffuse and opacity chunk

And one by Leonidas too