Recent

Author Topic: Glynn Set Curve: GigaTron, Lulu and Boleeman Versions  (Read 1183 times)

Gigatron

  • Sr. Member
  • ****
  • Posts: 354
  • Amiga Rulez !!
    • Gigatron Shader Network Demo
Re: Glynn Set Curve: GigaTron, Lulu and Boleeman Versions
« Reply #15 on: January 10, 2026, 12:54:09 am »
Quote
Do you know what type of noise is being used? (Perlin, simplex, etc ?)

The noise used in the example of shader i've sent is  simple 2D Value noise working in grid based in other word random pixel. I think it's by IQ from shadertoy author ;

Code: Pascal  [Select][+][-]
  1. // simle 2d value noise , or random pixel on UV screen
  2. float hash(vec2 p) {
  3.     return fract(sin(dot(p, vec2(12.9898, 78.233))) * 43758.5453);
  4. }
  5.  
  6. float noise(vec2 p) {
  7.     vec2 i = floor(p);
  8.     vec2 f = fract(p);
  9.     f = f * f * (3.0 - 2.0 * f);
  10.    
  11.     float a = hash(i);
  12.     float b = hash(i + vec2(1.0, 0.0));
  13.     float c = hash(i + vec2(0.0, 1.0));
  14.     float d = hash(i + vec2(1.0, 1.0));
  15.    
  16.     return mix(mix(a, b, f.x), mix(c, d, f.x), f.y);
  17. }


Coding faster than Light !

 

TinyPortal © 2005-2018