Subversion Repositories gelsvn

Rev

Rev 393 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 393 Rev 395
Line 18... Line 18...
18
  float stripe_signal = 100 * eig_norm;
18
  float stripe_signal = 100 * eig_norm;
19
  vec4 stripe_col = abs(stripe_signal) < 3.14 ? vec4(1,1,0,0) : vec4(.1,.1,.1,0);
19
  vec4 stripe_col = abs(stripe_signal) < 3.14 ? vec4(1,1,0,0) : vec4(.1,.1,.1,0);
20
 
20
 
21
  gl_FragColor = eig_norm * vec4(-1,0,1,0);
21
  gl_FragColor = eig_norm * vec4(-1,0,1,0);
22
  if(do_diffuse)   gl_FragColor *= dot_ln;
22
  if(do_diffuse)   gl_FragColor *= dot_ln;
23
  if(do_highlight) gl_FragColor += pow(dot_ln,10)*vec4(.5,.5,.5,0);
23
  if(do_highlight) gl_FragColor += dot_ln*dot_ln*dot_ln*dot_ln*dot_ln*dot_ln*dot_ln*vec4(.5,.5,.5,0);
24
  gl_FragColor += stripe_col * smoothstep(0.8,1,cos(stripe_signal));
24
  gl_FragColor += stripe_col * smoothstep(0.8,1.0,cos(stripe_signal));
25
}
25
}
26
 
26
 
27
/*/
27
/*/
28
void main()
28
void main()
29
{
29
{