UNPKG

gl-image

Version:
3 lines (2 loc) 415 B
export declare const defaultVertexSource = "\nattribute vec2 vertex;\nattribute vec2 _texCoord;\nvarying vec2 texCoord;\nvoid main() {\n texCoord = _texCoord;\n gl_Position = vec4(vertex * 2.0 - 1.0, 0.0, 1.0);\n}"; export declare const defaultFragmentSource = "\nprecision highp float;\nuniform sampler2D texture;\nvarying vec2 texCoord;\nvoid main() {\n gl_FragColor = texture2D(texture, texCoord);\n}";