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
77753debeb2bb1a6a9ca6d6515c99c3ad0c0dc87
OldThink/Resources/Shaders/gradientcirclemask.swsl

10 lines
378 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
uniform float percentagedistanceshow = 0.1;
uniform float gradientfalloffwidth = 0.2;
void fragment() {
float dist = distance(UV, vec2(0.5, 0.5));
float fromdiskdist = dist - percentagedistanceshow;
COLOR.a = max(0, min(1.0, 2.0*dist/percentagedistanceshow - 2.0));
COLOR.rgb = vec3(1,1,1) - vec3(fromdiskdist,fromdiskdist,fromdiskdist)/gradientfalloffwidth;
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 130ms Template: 10ms
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