Custom Sprite Shader?

Is it possible to replace the sprite pixel (and/or vertex) shader at runtime? I’ve tried several variations on:

   //glsl code...

…but without success.

That should work.

Make sure you replace the shader code before creating the sprite manager.

If it still does not work, you will need to provide a Playground I think.

It can’t be (re)declared after a sprite manager has been created–or at least the custom shader won’t affect the existing sprite manager. That was the issue. So not as flexible as I’d prefer, but it is doable.

You could just do a Custom Shader? Then copy the sections of code from the original over that you need and delete what you don’t.

What is it that you need the standard one to do? I can prolly get the feature you want deployed.