diff --git a/kde/plasmoid/contents/shaders/hill1ch.frag b/kde/plasmoid/contents/shaders/hill1ch.frag new file mode 100644 index 0000000..d6b3ef2 --- /dev/null +++ b/kde/plasmoid/contents/shaders/hill1ch.frag @@ -0,0 +1,40 @@ +uniform sampler2D tex1; +in mediump vec2 qt_TexCoord0; +out vec4 out_Color; + +float height1(float distanc,float raw_height){ + return raw_height-distanc; +} + +float height2(float distanc,float raw_height){ + return raw_height/(1+distanc*distanc); +} + +float height(float distanc,float raw_height){ + return raw_height*exp(-distanc*distanc*3); +} + +void main() +{ + float px_step=0.0005; + int max_distance=40; + + float h=1-qt_TexCoord0.y; + + out_Color=vec4(0,0,0,0); + float max_nb=0; + for(int i=-max_distance; imax_nb){ + max_nb=raw_max; + out_Color=vec4(getRGB(5*x),1.); + } + } +}