Need help with my custom shader

Hi guys,

This is my second post here regarding the custom shaders in Corona.

I played a bit with different shaders from Shadertoy and mixed several of them to create a portal effect, although it’s not fully complete.

Here is the link for the Corona Shader Playground: https://goo.gl/Uxn7VQ

Basically, what I want to achieve here is to make the black rotating part white instead. I tried playing with the code but couldn’t do it. :frowning:

If anyone has any knowledge on how to achieve this I’d be really grateful.

Thank you all and have a nice day!

Hi.

It seems okay with these two lines at the end:

 P\_COLOR float c = step(f, .05); // some arbitrary threshold return CoronaColorScale(vec4(max((f\*horColour), vec3(c)) , 1.0));

although the inner circle is sensitive to that threshold’s value.

Hi StarCrunch,

Thank you for your help and for your fast answer! I will play a bit more with this shader and if something good comes out of it I’ll definitely share it :slight_smile:

Randomly stumbled across this thread. My suggestion would be this:

   return CoronaColorScale(vec4((1.-f\*horColour) , 1.0));

and then fix the colours in the //get the colour bit.

Hi.

It seems okay with these two lines at the end:

 P\_COLOR float c = step(f, .05); // some arbitrary threshold return CoronaColorScale(vec4(max((f\*horColour), vec3(c)) , 1.0));

although the inner circle is sensitive to that threshold’s value.

Hi StarCrunch,

Thank you for your help and for your fast answer! I will play a bit more with this shader and if something good comes out of it I’ll definitely share it :slight_smile:

Randomly stumbled across this thread. My suggestion would be this:

   return CoronaColorScale(vec4((1.-f\*horColour) , 1.0));

and then fix the colours in the //get the colour bit.