meh11's Electricity6 shader - help appreciated.

I like meh11’s Electricity6 shader, and I am using it in a game I am trying to develop. I can script it through the “FallOff” property to essentially fade with time - exposing an underlying layer but retaining the “electric” edges. See the image below.

What I would like to do is to colour the white areas at the start give the whole effect a more blue appearance- but as I know next to nothing about shaders - I have no idea how to accomplish that task.

So any help would be appreciated

Electricity 6 Shader (Scroll about halfway down to find the shader code.)

cheers, gryff :slight_smile:

@meh11: Thank you for the quick response.

I will try out your suggestions and post results later today.

cheers, gryff :slight_smile:

meh11: Well I tried out your suggestions and in particular I played with and set a very dark FallOff colour that gives me the upper pic - inactive portal.

half4 col = ramp.a * pow(i.viewAngle, _FallOff) * _Color * 2;

First step I did was to replace the “2” with a shader variable (property?) controlled by a script

half4 col = ramp.a * pow(i.viewAngle, _FallOff) * _Color * _Saturation;

Then rather than “add another colour to the whole thing”, I used the script to lerp the FallOff colour to a mid point colour (see mid pic of image) - portal activated.

And then as the Falloff factor continued increasing, I lerped to a final colour (more electric) and wizard appearance(bottom pic in image).

The biggest problem I had was chosing speeds and the start, mid and end colours - required some fiddling. But I like the final result - so thank you for your shader and help. I will probably tweak the script a little more see if I can further improve it.

TY again.

cheers, gryff :slight_smile: