OpenGL ES3 Half-float Textures?
Hello.
According to glGetString(GL_EXTENSIONS), iPhone 5s(OpenGLES3) seems supporting GL_EXT_color_buffer_half_float.
Then how can I create the half-float(16bit) per pixel as texture internal format?
I tried both codes as follows.
glTexImage2D(GL_TEXTURE_2D,0,GL_RGB16F,width,height,0,GL_RGB,GL_HALF_FLOAT,NULL) ;
glTexImage2D(GL_TEXTURE_2D,0,GL_RGBA16F,width,height,0,GL_RGBA,GL_HALF_FLOAT,NUL L);
and glGetError(); returns,"invalid enum".
In the following codes, program works but I think it's not the correct way.
glTexImage2D(GL_TEXTURE_2D,0,GL_RGB,width,height,0,GL_RGB,GL_HALF_FLOAT_OES,NULL );
Thanks,
iPhone 5s