new glow in beat symbols
This commit is contained in:
committed by
Diego Marcos
parent
fd240e86ab
commit
39d36ccc3e
25
assets/shaders/stageAdditive.js
Normal file
25
assets/shaders/stageAdditive.js
Normal 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;
|
||||
}
|
||||
`
|
||||
};
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user