Strange CYOS Shader Behaviour - Downloaded Shader Is White

Hi folks, I was working on porting a shader to Babylon.js here:

It seems to render OK in CYOS, at least OK for a revision 1. But when I download the shader and open it local, or open it on a dev server the shader only outputs white. Has anyone seen this sort of thing before?

Kindest regards (and thanks for all of your hard work)

It seems the difference of behaviour is an artifact of the canvas color, which is grey in one case and white in the other.

That’s because you use an alpha value of 0 for your output color. If using one instead, the behaviour is the same:

Oh wow, I feel dumb now :blush:. Thanks @Evgeni_Popov.