- Home /
Camera with shader?
I would like my camera to render distort shader with proper texture on screen. Is there a way to do that? I've searched and found something about Camera.RenderWithShader or Graphics.Blit but there is no explanation. Nothing useful in docs and i didn't find any tutorial on internet. Any help please?
Answer by tanoshimi · Jul 27, 2015 at 03:54 PM
You're describing an "Image Effect", which takes the output of a camera to a rendertexture, applies whatever processing you want, and then blits it back to the screen. For examples, just look at any of the image effects included in the standard assets.
Answer by Jessespike · Jul 27, 2015 at 04:02 PM
There's the Image Effects reference. Download Unity's Effects package for working examples. You can modify an existing one for your effect:
Assets > Import Package > Effects