OpenGL textures always show up black
I recently finished a project that mainly focused on rendering into Unity with OpenGL. Rendering-wise everything works great (primitives, etc.) but all my attempts to render any type of textures inside Unity end up just plain black.
The same exact OpenGL code put in a separate executable works just fine but when moved inside Unity, all textures go black.
I render everything to an FBO and pass FBO's color attachment to Unity to construct a Texture2D from it. Even textures rendered inside the FBO are also black.
I was wondering if anyone else had this issue before or knows how to solve this.
Your answer
Follow this Question
Related Questions
2D advanced texture blurriness 1 Answer
Material.SetTexture doesn't work if not "_MainTex" 0 Answers
Texure2D is not changing 1 Answer
Texture is bad on device 0 Answers
Duplicate Texture in Editor 1 Answer