contributors menu done
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#pragma header
|
||||
|
||||
// shader used in GitHub credits
|
||||
|
||||
void main() {
|
||||
float len = length(openfl_TextureCoordv - vec2(0.5, 0.5));
|
||||
float r = 0.5 - (1.0 / openfl_TextureSize.x);
|
||||
vec4 c = flixel_texture2D(bitmap, openfl_TextureCoordv);
|
||||
vec4 color = mix(vec4(0, 0, 0, 0.5), c, c.a);
|
||||
gl_FragColor = color * clamp(1 - ((len - r) * openfl_TextureSize.x), 0, 1);
|
||||
}
|
||||
Reference in New Issue
Block a user