12 lines
252 B
Text
12 lines
252 B
Text
|
|
// Vertex shader for tilt-shift effect
|
||
|
|
// Passes through position and calculates texture coordinates
|
||
|
|
|
||
|
|
attribute vec4 aPosition;
|
||
|
|
attribute vec2 aTexCoord;
|
||
|
|
|
||
|
|
varying vec2 vTexCoord;
|
||
|
|
|
||
|
|
void main() {
|
||
|
|
gl_Position = aPosition;
|
||
|
|
vTexCoord = aTexCoord;
|
||
|
|
}
|