Last active
December 22, 2015 07:28
-
-
Save bgstaal/6437725 to your computer and use it in GitHub Desktop.
This file contains 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
SHADERS | |
When not explicity specifying what texture target to use, OF uses GL_TEXTURE_RECTANGLE_ARB by default. | |
This results in shaders having to use sampler2DRect for the texture type and real texture coordinates. | |
By calling ofDisableArbTex() texture targets are switched to GL_TEXTURE_2D. | |
This results in shaders having to use sampler2D as texture type and Normalized coordinates. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment