glitch

  • 0 Replies
  • 131 Views

0 Members and 1 Guest are viewing this topic.

Offline claude

  • *
  • 3f
  • ******
  • Posts: 1558
    • mathr.co.uk
« on: November 20, 2018, 01:04:25 PM »
Code: [Select]
#include "2D.frag"

vec3 glitch(vec2 pos)
{
  if (length(pos) < 0.1)
     return fract(pos.xyy) / 0.1;
  else
    0.0;
}

vec3 color(vec2 pos)
{
  return glitch(pos);
}

Note: no return in the else branch! This invokes undefined behaviour, results are highly unpredictable, may vary on different system, may even fail to compile?  I don't know if it's legal GLSL...


Linkback: https://fractalforums.org/code-snippets-fragments/74/glitch/2333/


xx
Perturbation, glitch detection and glitch fixing

Started by Kish_Zera on Noob's Corner

0 Replies
192 Views
Last post August 01, 2019, 11:29:08 PM
by Kish_Zera
clip
FRACTVIEW glitch

Started by hgjf2 on Other

0 Replies
130 Views
Last post November 17, 2019, 08:03:33 AM
by hgjf2
xx
large attachment glitch

Started by claude on Forum Help And Support

0 Replies
200 Views
Last post September 06, 2018, 10:04:15 AM
by claude
xx
wiggly fungus spores glitch

Started by claude on Fractal Image Gallery

1 Replies
325 Views
Last post September 06, 2017, 11:35:57 AM
by v