Projektordner für das Team Deutsches Museum (FORUM).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ControlPoint.frag 339B

12345678910111213141516
  1. #version 150
  2. in vec2 vTexCoord;
  3. in vec4 vColor;
  4. out vec4 fragColor;
  5. void main(void)
  6. {
  7. vec2 uv = vTexCoord * 2.0 - 1.0;
  8. float d = dot(uv, uv);
  9. float rim = smoothstep(0.7, 0.8, d);
  10. rim += smoothstep(0.3, 0.4, d) - smoothstep(0.5, 0.6, d);
  11. rim += smoothstep(0.1, 0.0, d);
  12. fragColor = mix(vec4( 0.0, 0.0, 0.0, 0.25), vColor, rim);
  13. }