I’m trying to make an object look like it consists of static. ive found a way to get the outside to do that, the object is transparant with static over it. the second thing after that is that i want to make everything inside the object rendered as a greyscale.
now so far i think the only way to do this is to do grabpass and than turn that into a greyscale image and rerender that… however im really bad at programming shaders.
That sounds like it would work. I don’t have Unity here to test your shader out, but which part are you having trouble with? It looks like you aren’t attempting to desaturate the grabpass results at all. To do that you’ll have to convert the RGB value to HSL, and then reduce S to zero and convert back.
the static is indeed already working, im missing the desaturation part. the problem is CG programming is completely new to me, i pretty good at javascript, php, coldfusion, actionscript and whatnot… none of these however even closely resemble CG so far
so my question symplified would be how would i use the grabbed pass, apply the luminance function on it and reattach it. im still trying all sorts of things but i get confused by all the terms ive never used.