- Home /
Question by
VillainousVelociraptor · Dec 02, 2019 at 09:42 PM ·
texture2drendertexturepngalpha-channelgrayscale
How to save a RenderTexture as a 1-channel 8-bit grayscale PNG?
Hello,
I want to save a render texture into a grayscale 8 bit PNG image that only uses 1 color channel. I converted the render texture into a Texture2D and have experimented with TextureFormat.R8 and TextureFormat.Alpha8 but have had no success. The output images have every pixel painted black with Alpha8 and every pixel painted turquoise with R8. Is there any way to accomplish this without having to use custom shaders? Thank you!
Comment