我想通过冰川再生获得GL_FLOAT texture的价值。
My Android device support OES_texture_float. but, it became an error to attach GL_FLOAT texture.
在开放式GES 2.0 安德列中,加入“GL_FLOAT的案文是不可能的? 或者取决于硬件?
Part of my code is:
Init:
glGenTextures(1, &texture);
glBindTexture(GL_TEXTURE_2D,texture);
glTexImage2D(GL_TEXTURE_2D,0,GL_RGB,texWidth,texHeight,0,GL_RGB,GL_FLOAT,NULL);
FBO 附文:
glBindFramebuffer(GL_FRAMEBUFFER,framebuffer);
glFramebufferTexture2D(GL_FRAMEBUFFER,GL_COLOR_ATTACHMENT0,GL_TEXTURE_2D,texture,0);
checkGlError("FBO Settings");
// glGetError() return 0x502.
status = glCheckFramebufferStatus(GL_FRAMEBUFFER);
// glCheckFramebufferStatus() return 0.
如果任何人有某种见解,那就可加以解释。