added perspective option to corner pin

This commit is contained in:
itsmattkc
2018-11-13 02:39:15 +11:00
parent f9685d5913
commit 6495c5768d
57 changed files with 416 additions and 80 deletions
+13
View File
@@ -0,0 +1,13 @@
#version 110
uniform float amount;
uniform sampler2D myTexture;
varying vec2 vTexCoord;
void main(void) {
vec4 textureColor = texture2D(myTexture, vTexCoord);
float amount_val = amount * 0.01;
vec3 col = textureColor.rgb+((vec3(1.0)-textureColor.rgb-textureColor.rgb)*vec3(amount_val));
gl_FragColor = vec4(col, textureColor.a);
}