Skip to content

Instantly share code, notes, and snippets.

@bgstaal
Last active December 22, 2015 07:28
Show Gist options
  • Save bgstaal/6437725 to your computer and use it in GitHub Desktop.
Save bgstaal/6437725 to your computer and use it in GitHub Desktop.
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