diff options
Diffstat (limited to 'fiz/naloga/gl/fragment.glsl')
-rw-r--r-- | fiz/naloga/gl/fragment.glsl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fiz/naloga/gl/fragment.glsl b/fiz/naloga/gl/fragment.glsl index 095cb78..eed4bb7 100644 --- a/fiz/naloga/gl/fragment.glsl +++ b/fiz/naloga/gl/fragment.glsl @@ -5,7 +5,6 @@ #define SEG 32 -#define I .5 #define n 100. #define PI 3.1415 @@ -33,14 +32,15 @@ vec3 tuljava (vec3 pz, float R) { void main () { + float I = -.5; float R = 0.8; - float R2 = abs(sin((time+8.2)/.6))+0.5; + float R2 = (abs(sin((time+8.2)/.6))+0.5)*0+R; vec2 uv = UVo; vec2 poz = vec2(uv*2.); // zavrteti moramo tako točke same, kot tudi vec2 offset = vec2(R/2.,0); // njihove komponente float kot = time/.4; float multi = n*I/**abs(sin(time/.2)+0.2)*/; - vec2 dodatek = vec2(sin(time/.6)*.5, cos(time/.4)*.6); + vec2 dodatek = vec2(sin(time/.6)*.5, cos(time/.4)*.6)*0; vec3 rez = tuljava( vec3(poz+offset, 1/2*R), R )*n*I + @@ -65,7 +65,7 @@ void main () { 1); rez *= 1000.; #ifdef show_vec - fragColor = vec4(rez, 1); + fragColor = vec4(rez+0.5, 1); #else fragColor = vec4(vec3(length(rez)), 1); #endif |