Shadows in custom shader?

You can use the shader chunks system. The PlayCanvas engine uses lots of little chunks of shader code that control various parts of the final rendered image. You can change those chunks and plug in your shader code and the rest of the built-in chunks will handle shadows.

Here are some examples:

1 Like