Skip to content

Commit

Permalink
CloneWrapper: added ARB texture extension to shaders
Browse files Browse the repository at this point in the history
  • Loading branch information
arturoc committed Oct 17, 2011
1 parent bae6d6c commit 9f7a10e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CloningWrapper/src/Clone.cpp
@@ -1,6 +1,7 @@
#include "Clone.h"

char maskBlurShaderSource[] =
"#extension GL_ARB_texture_rectangle : enable\n"
"uniform sampler2DRect tex, mask;\
uniform vec2 direction;\
uniform int k;\
Expand All @@ -26,6 +27,7 @@ void main() {\
}";

char cloneShaderSource[] =
"#extension GL_ARB_texture_rectangle : enable\n"
"uniform sampler2DRect src, srcBlur, dstBlur;\
void main() {\
vec2 pos = gl_TexCoord[0].st; \
Expand Down Expand Up @@ -106,4 +108,4 @@ void Clone::update(ofTexture& src, ofTexture& dst, ofTexture& mask) {

void Clone::draw(float x, float y) {
buffer.draw(x, y);
}
}

0 comments on commit 9f7a10e

Please sign in to comment.