Browse Source

upload

praese
Tobias Lindner 4 years ago
parent
commit
ef4081e6aa
1 changed files with 21 additions and 0 deletions
  1. 21
    0
      bin/data/shaders/ofxWarp/WarpPerspective.vert

+ 21
- 0
bin/data/shaders/ofxWarp/WarpPerspective.vert View File

@@ -0,0 +1,21 @@
#version 150

// OF default uniforms and attributes
uniform mat4 modelViewProjectionMatrix;
uniform vec4 globalColor;

in vec4 position;
in vec2 texcoord;
in vec4 color;

// App uniforms and attributes
out vec2 vTexCoord;
out vec4 vColor;

void main(void)
{
vTexCoord = texcoord;
vColor = globalColor;

gl_Position = modelViewProjectionMatrix * position;
}

Loading…
Cancel
Save