Files
junisaber/assets/shaders/flat.js
Diego F. Goberna 25ec36e686 new logo
2018-12-07 03:25:51 -08:00

18 lines
332 B
JavaScript

module.exports = {
vertexShader : `
varying vec2 uvs;
void main() {
uvs.xy = uv.xy;
gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
}
`,
fragmentShader: `
varying vec2 uvs;
uniform sampler2D src;
void main() {
gl_FragColor = texture2D(src, uvs);
}
`};