How do I invert color on shader? Inside out shader?

Node-based Shader Editor
Post Reply
markashburner
Posts: 8
Joined: Thu Mar 08, 2018 3:51 pm

How do I invert color on shader? Inside out shader?

Post by markashburner »

Hi

I am trying to work out how to invert the color on my spherical mesh which I am using for an atmosphere shader.

So I need the color to show on the inside of the mesh.

Can someone please give me a quick tip on how to do this?

Thanks
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: How do I invert color on shader? Inside out shader?

Post by Amplify_Borba »

Hello Mark, thank you for getting in touch!

You could try using a One Minus Node together with a Switch by Face Node in order to have a color on the outer face and its inverted color in the inner one, as per the example node setup below:
InvertColor.jpg
InvertColor.jpg (82.82 KiB) Viewed 7115 times
Please let me know if this helps, thanks!
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
markashburner
Posts: 8
Joined: Thu Mar 08, 2018 3:51 pm

Re: How do I invert color on shader? Inside out shader?

Post by markashburner »

Hi Amplify_Borba

No that didn't achieve the desired effect. Inside shader is not visible.
Lizzard
Posts: 8
Joined: Mon Feb 26, 2018 2:25 pm

Re: How do I invert color on shader? Inside out shader?

Post by Lizzard »

Set "Cull Mode" to "Off" maybe?
markashburner
Posts: 8
Joined: Thu Mar 08, 2018 3:51 pm

Re: How do I invert color on shader? Inside out shader?

Post by markashburner »

Yes Lizard that did the trick. Thank you.
Post Reply