- Home /
OnRenderImage with 16 bit framebuffer
I am running on an android s3 device. I have a post effect that I am rendering from OnRenderImage. When I sample the main texture(framebuffer) in my shader, the samples always result in black. If I change the player settings to use a 32 bit framebuffer, then the shader works and the sampling of the main texture results in the expected colors.
How can I get the colors to be sampled properly when using a 16 bit framebuffer?
Update: I have found that I can get the effect to render properly when the effect is applied to a perspective camera. It's only when the effect is applied to an orthographic camera in a 16 bit framebuffer environment that I end up with a framebuffer texture that appears to be black. The investigation continues.
Your answer
![](https://koobas.hobune.stream/wayback/20220613144153im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Order of OnPostRender callbacks? 1 Answer
How to do time warp effect on game like popular tiktok effect 1 Answer
How do I draw directly (and quickly) into the rendered frame? 1 Answer
Limiting orthographic camera to only rendering specific objects without using layers 0 Answers
Unity - blur on one camera effects the other as well 0 Answers