Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 1.28 KB

Rendezvous.md

File metadata and controls

43 lines (34 loc) · 1.28 KB

Rendezvous

Based on 'Rendezvous' by Dave_Hoskins and ported by ported by JiPi.

A flight through a colorful fractal landscape that breathes and seems to be alive. An impressively compact code for the definition of the landscape and you don't necessarily need matrices to program a great camera flight, as you can see.

Rendezvous

Have fun

float Map( vec3 p )
{
	float scale = 1.0;
	float add = sin(iTime)*.2+.1;

	for( int i=0; i < 9;i++ )
	{
		p = 2.0*clamp(p, -CSize, CSize) - p;
		float r2 = dot(p,p);
		float k = max((1.15)/r2, 1.);
		p     *= k;
		scale *= k;
	}
	float l = length(p.xy);
	float rxy = l - 4.0;
	float n = l * p.z;
	rxy = max(rxy, -(n) / (length(p))-.07+sin(iTime*2.0+p.x+p.y+23.5*p.z)*.02);
    float x = (1.+sin(iTime*2.));x =x*x*x*x*.5;
    float h = dot(sin(p*.013),(cos(p.zxy*.191)))*x;
	return ((rxy+h) / abs(scale));

}

Rendezvous

Compatibility

  • Tested on macOS/Metal
  • Tested on macOS/OpenCL 💣💣💣
  • Tested on Windows/Cuda
  • Tested on Windows/OpenCL