Last active
August 29, 2015 14:25
-
-
Save yorung/8a4d16bd4cbcd1bc9050 to your computer and use it in GitHub Desktop.
half float texture creating
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #ifdef OPENGL_OR_ES30 | |
| // ES 3.0 | |
| glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA16F, w, h, 0, GL_RGBA, GL_HALF_FLOAT, nullptr); | |
| #else | |
| // ES 2.0 | |
| glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, w, h, 0, GL_RGBA, GL_HALF_FLOAT_OES, nullptr); | |
| #endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment