moved essential resources out of the assets directory and into the jar

This commit is contained in:
minjaesong
2022-01-28 10:30:08 +09:00
parent e3b82ae5b6
commit 956c9d44e1
61 changed files with 72 additions and 142 deletions

View File

@@ -0,0 +1,39 @@
#version 120
#ifdef GL_ES
precision mediump float;
#endif
varying vec4 v_color;
varying vec2 v_texCoords;
uniform sampler2D u_texture;
uniform float rcount = 64.0;
uniform float gcount = 64.0;
uniform float bcount = 64.0;
uniform float acount = 1.0;
uniform vec2 circleCentrePoint;
uniform vec2 colorCentrePoint;
uniform float circleSize;
void main() {
vec2 screenCoord = gl_FragCoord.xy;
float distToCircleCentre =
(screenCoord.x - circleCentrePoint.x + 0.5) * (screenCoord.x - circleCentrePoint.x + 0.5) +
(screenCoord.y - circleCentrePoint.y + 0.5) * (screenCoord.y - circleCentrePoint.y + 0.5);
float circleSizeSqr = circleSize * circleSize / 4;
if (distToCircleCentre <= circleSizeSqr) {
gl_FragColor = vec4(0.993, 0.993, 0.993, 1.0);
}
else if (distToCircleCentre <= circleSizeSqr + 200) { // dunno why it's 200; 2000 makes 10px feather
gl_FragColor = vec4(0.993, 0.993, 0.993, 1 - (distToCircleCentre - circleSizeSqr) / 200);
}
else {
gl_FragColor = vec4(0,0,0,1);
}
}