I’m guessing the answer is no, but, is there any way to get the depth channel from a RenderTexture into a Texture2D. I need to save it out to my hard drive.
Thanks for any help,
Nathan
I’m guessing the answer is no, but, is there any way to get the depth channel from a RenderTexture into a Texture2D. I need to save it out to my hard drive.
Thanks for any help,
Nathan
Unfortunately, I don’t think there is any way to get the pixel data out of a RenderTexture, although I’d love to be proven wrong.
Thanks Andeeee,
Yeah, would be nice, haha. I guess I’ll just use a raycast per pixel. It’s a one time operation, so not a huge deal.
You can just render it to screen and grab it from there if everything fails