G’day
Have found an annoying bug that I can’t find any mention of so I would kindly ask if somebody can see if I’m doing anything wrong. I’m making a Texture2D from a camera by:
- first make a new camera and clone the main camera’s settings
- set rendertexture to a temp. texture
- render
- copy rendertexture to Texture2D using ReadPixels (setting RT active)
On Mac OS X the Texture2D is as you would expect, but on windows (tested on two systems and on mac with WINE) the Texture2D is vertically flipped.
Can anyone point out if I’m doing it wrong or if it is a bug (as I strongly suspect) if I can assume the texture will always be vertically flipped on windows (so I can hack around the problem)?
(in the project the Render Camera and Render Cube can easily be removed, was just a test if it was the RenderTexture or the copying where the flipping seems to occur).
Thanks!
Jaap
104030–3996–$fliptest_174.zip (4 MB)
104030–3997–$fliptest_src_590.zip (846 KB)