This commit is contained in:
Diego F. Goberna
2018-12-05 23:42:54 +01:00
committed by Diego Marcos
parent cba2bb9459
commit 25ec36e686
10 changed files with 7285 additions and 128 deletions

17
assets/shaders/flat.js Normal file
View File

@@ -0,0 +1,17 @@
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);
}
`};