new glow in beat symbols

This commit is contained in:
Diego F. Goberna
2018-12-03 17:54:04 +01:00
committed by Diego Marcos
parent fd240e86ab
commit 39d36ccc3e
14 changed files with 118 additions and 68 deletions

View File

@@ -0,0 +1,25 @@
module.exports = {
vertexShader : `
varying vec2 uvs;
varying vec3 worldPos;
void main() {
uvs.xy = uv.xy;
vec4 p = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
worldPos = (modelMatrix * vec4( position, 1.0 )).xyz;
gl_Position = p;
}
`,
fragmentShader: `
varying vec2 uvs;
varying vec3 worldPos;
uniform vec3 redColor;
uniform vec3 blueColor;
uniform sampler2D src;
void main() {
vec4 col = texture2D(src, uvs);
gl_FragColor = col;
}
`
};

View File

@@ -15,7 +15,8 @@ module.exports = {
#define FOG_FALLOFF 45.0
varying vec2 uvs;
varying vec3 worldPos;
uniform vec3 color;
uniform vec3 redColor;
uniform vec3 blueColor;
uniform vec3 fogColor;
uniform sampler2D src;