Home Technical Talk

Shader - Backface/Cull/Double Sided masking?

polycounter lvl 12
Offline / Send Message
Ace-Angel polycounter lvl 12
Hey to all,

I was wondering if anyone had any advice on how I could create a setup in my shader, that allowed me to essentially double-sided mask my mesh?

For those curious how to do the effect or what I'm talking about in it's current form:

JFwDonp.jpg

As you can see, this is what I got, the inside (backface) is one color, and the normals pointing out another, but there a few issues, maybe some of you peeps know how to fix? For example:

-Certain parts of the mesh will 'clip' with the inner color as outlines. This is more apparent on the sphere, as certain parts at the edge will pick up the green color.

-This setup is perfectly fine for simple stuff like textures, but if I put in a Term, like say a Blinn Specular, it stops working, even stuff like Blinn's (non-clamped) backface 'spotlight' effect disappears.

Anyone has any advice? I'm trying to more then a simple textures change, I would like to change Terms too.

Cheers!
Sign In or Register to comment.