diff options
author | MarianoGNU <marianognu.easyrpg@gmail.com> | 2015-12-20 18:21:53 -0300 |
---|---|---|
committer | MarianoGNU <marianognu.easyrpg@gmail.com> | 2016-01-15 17:23:19 -0300 |
commit | 1f3d6824c8db30cd5636aaa3978a953bedff4ed8 (patch) | |
tree | 970e602191846d847029fbda46d54e08a02f4da5 /scene/resources/default_theme/w_editor.gsl | |
parent | dc7755ffcd1e275b065d3acfcc7696697097567b (diff) |
Move shaders to default theme and add shader_override related methods to Control class
Diffstat (limited to 'scene/resources/default_theme/w_editor.gsl')
-rw-r--r-- | scene/resources/default_theme/w_editor.gsl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scene/resources/default_theme/w_editor.gsl b/scene/resources/default_theme/w_editor.gsl new file mode 100644 index 0000000000..6d2dd9a0bb --- /dev/null +++ b/scene/resources/default_theme/w_editor.gsl @@ -0,0 +1,11 @@ +vec3 nd1sl2=vec3(UV,0);
+float nd2sl1=1-nd1sl2.y;
+vec3 nd3sl0=vec3(nd2sl1,1,1);
+vec3 nd6sl0;
+{
+ vec3 c = nd3sl0;
+ vec4 K = vec4(1.0, 2.0 / 3.0, 1.0 / 3.0, 3.0);
+ vec3 p = abs(fract(c.xxx + K.xyz) * 6.0 - K.www);
+ nd6sl0=c.z * mix(K.xxx, clamp(p - K.xxx, 0.0, 1.0), c.y);
+}
+COLOR.rgb=nd6sl0;
\ No newline at end of file |