Shader Is Not Running If I Bind Framebuffer To Mipmap Texture
I am using open gl to generate Gaussian Parimid, I create a 2D texture with mipmap, and bind to array of FBO, FBO[0] -> base level of texture, FBO[1] -> level 1 texture and s
Solution 1:
From opengl es3.0 specification (http://www.khronos.org/registry/gles/specs/3.0/es_spec_3.0.2.pdf) , we can see the list of news feature, one of them is:
ability to attach any mipmap level toa framebuffer object
So that means in opengl es2.0, it doesn't support rendering to specific level of texture.
So how to solve this if you need render to specific mipmap level?
1)Create more textures to render one, each texture corresponding to one level mipmap, this way will create many textures, not efficient.
2) Create a big texture to hold all levels of mipmap, it's like put the pyramid from vertical to horizontal.
Post a Comment for "Shader Is Not Running If I Bind Framebuffer To Mipmap Texture"