Home Technical Talk

World position based shading lerp

polycounter lvl 18
Offline / Send Message
kodde polycounter lvl 18
Hey guys,

Decided to give this idea a go which I had been playing around with in my head for a while now.

It uses a world position in your specified axis (x,y,z) and lerps between two shading solutions. Main issue now is that I have to define the specific shader features for area A and B inside the same CGFX file. Would be awesome just to have this as some form of utility shader which you could plug other shaders into.

Getting transparency to work flawlessly was an issue, so right now backfaces are culled. Still works rather alright, gives the effect I wanted.

CGFX shader created in Mental Mill and used in Maya. Head model and its textures is by Lee Perry-Smith.

[ame]http://www.youtube.com/watch?v=bLQezC4xOXg[/ame]
Sign In or Register to comment.