Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F619919
ping_ps.txt
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
429 B
Referenced Files
None
Subscribers
None
ping_ps.txt
View Options
#define pi 3.141592653589793238462643383279
#define twopi (pi * 2.0)
varying vec2 rcoords;
const float maxRad = 0.9;
const float minRad = 0.7;
void main() {
float r = length(rcoords);
vec4 color = gl_Color;
if(r < minRad || r > maxRad)
discard;
float alpha = abs(r - (minRad + (maxRad - minRad) / 2.0));
alpha /= (maxRad - minRad);
alpha = 1.0 - alpha;
color.a *= alpha;
gl_FragColor = color;
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sat, Nov 14, 5:21 PM (12 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
135604
Default Alt Text
ping_ps.txt (429 B)
Attached To
Mode
R80 StarRuler2-Source
Attached
Detach File
Event Timeline