Open source Star Ruler 2 source code!
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
varying vec2 uv;
|
||||
uniform sampler2D texture;
|
||||
|
||||
void main() {
|
||||
float a = pow(min(uv.y, 1.0 - uv.y), 0.3);
|
||||
vec4 texCol = texture2D(texture,uv);
|
||||
|
||||
gl_FragColor.rgb = gl_Color.rgb * texCol.rgb;
|
||||
gl_FragColor.a = a * gl_Color.a * texCol.a;
|
||||
}
|
||||
Reference in New Issue
Block a user