Hi, I’m working on something a bit tricky (for me at least) and I was wondering if it was possible to make multiple GrabPass pass on a single shader.
To explain a litlle, I have 3 meshes on my scene, one in the foreground (Dude), one in the background (Sky) and one in the middle (Glass).
they are rendered in this order : the Dude, then the Sky and then Wall. Eveymesh is Opaque. ( I’ve set an order on the render queue)
My shader is applied to the mesh Glass
Here what I want to do with them: http://dl.dropbox.com/u/24855439/GlassSkyDude.jpg
I want to make a GrabPass with only my Dude on it, and to redisplay it on the Glass first and
I want to make a GrabPass with only my Sky on it, and to redisplay it on the Glass too. The reason I want it separated is that my Dude is gonna make a lot a movement and I want it inverted so it’s not possible to mix it with the sky because the sky is pretty static (except the wind movement).
Given the order that my mesh are drawn now, I can only make a grabPass with the Sky and the Dude.
So here are my questions : Is it possible to make too GrabPass on a single Shader and If it’s possible, is there any tricks to GrabSomehting but ignore a mesh (for exemple my dude or my sky)???
Thanks!