Is there anyway to render an image to a texture dynamically using a shader?
1 Answer
1Normally you do that through a render texture. What are you doing that you would need to do it in a shader (which I don't believe you can do anyway sorry).
If you do it in a shader, you can then make a render texture of it, right? Just use a plane.
– JessyI've never heard of anyone being able to do that. The fragment shader writes to the buffer. You can render that into a texture, but that's just a RenderTexture and that is done at a lower level than Unity gives you access to. I would suggest doing what Jesse says and aim a camera at a plane with your shader on it. and render with clear flags set to "depth only"
– Peter_G
http://answers.unity3d.com/questions/742128/shaders-writing-data-to-texture.html. Any help?
– verenion