Rim color on a Forcefield like shader.

Hi all !

I’ve work all the past day to create a forcefield shader.

I work with the Strumpy shader editor plugin. (So usefull !) I’ve found some samples but nothing do what I want, so I try to create my own and learn with the exemples and other sources.

My problem is that I can’t add the rim “full” color, she seems to bee like the “soft light” photoshop option :

So, if I wan’t a black shader, It doesn’t work :

And I can’t get darker colors, full blue, etc …

The source is here and this is a capture of my nodes :

If someone can help me, it would be really wonderful !!!

Thank you !

You add the colors of rim and distortion together (‘linear dodge’ in photoshop). Since black is represented as (0,0,0), it will add 0 (which means it won’t have any visible contribution. Instead, you should lerp between rim color and the distortion output based on the fresnel value.

I have absolutely no experience with the shader editor, so I cannot tell you how this is done. Perhaps there is a box called ‘lerp’ available.

Thanks a lot !

Yes, there is a Lerp Function, getting three parameters. I’ll try this tonight (french time zone).