Logo
Explore Help
Register Sign In
Cinka/OldThink
1
0
Fork 0
You've already forked OldThink
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
f81ca7cebab65750ba6f2edc0b8d8cc8cc252a7b
OldThink/Resources/Shaders/circlemask.swsl

14 lines
336 B
Plaintext
Raw Normal View History

Species Component (#130) * Fix this fug oksure Creates the initial species component, damage states, and threshold templates and hooks them into the damageable component * More rebase fixes * test * Pre future rebase * Please * Lol * Lol2 * SHADERS * Update Engine * yml file * Fix an initialization issue, injects dependencies * Fix error in loading shaders * Makes a master character ui controller component added upon client attachment to entity and remove upon client detachment from entity * Fixes just about everytrhing * Address PJB's comments * geeze * Make overlays work in worldspace instead of screen space and not cover user interfaces * update submodule
2018-12-13 07:47:19 -06:00
float circle(in vec2 _st, in float _radius){
vec2 dist = _st-vec2(0.5);
return smoothstep(_radius-(_radius*0.01),
_radius+(_radius*0.01),
dot(dist,dist)*4.0);
}
void fragment(){
vec2 st = FRAGCOORD.xy*SCREEN_PIXEL_SIZE.xy;
COLOR.rgb = vec3(0);
COLOR.a = circle(st,0.05);
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 1090ms Template: 75ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API