• March 05, 2021, 09:03:19 AM

Login with username, password and session length

Author Topic:  glitch  (Read 195 times)

0 Members and 1 Guest are viewing this topic.

Offline claude

  • 3f
  • ******
  • Posts: 1791
    • mathr.co.uk
glitch
« 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/


There are no comments for this topic. Do you want to be the first?

xx
Perturbation, glitch detection and glitch fixing

Started by Kish_Zera on Noob's Corner

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

Started by hgjf2 on Other

0 Replies
221 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
248 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
374 Views
Last post September 06, 2017, 11:35:57 AM
by v