I need to draw only a few specific objects into a texture (with their material) and then use that RenderTexture
as a texture for an another object. I think Graphics.DrawMesh()
and Graphics.SetRenderTarget()
would be helpful, but I'm not sure.
Ultimately I'm trying to create refractive water, which will refract only specified GameObject
s, not layers. How can I do this?