mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-09 20:25:31 +00:00
explosion effect is looking nice
This commit is contained in:
@@ -5,11 +5,13 @@ precision mediump float;
|
||||
// Input vertex attributes (from vertex shader)
|
||||
varying vec3 fragPosition;
|
||||
|
||||
uniform float alpha;
|
||||
|
||||
void main() {
|
||||
// Texel color fetching from texture sampler
|
||||
|
||||
// NOTE: Implement here your fragment shader code
|
||||
|
||||
gl_FragColor = vec4(fragPosition, 1.0);
|
||||
gl_FragColor = vec4(fragPosition, alpha);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user