Realtime Fractal Renderer Documentation
mandelbrot_zoom.cl
Go to the documentation of this file.
1
#include "
utils.cl
"
2
3
#define CAMERA_POSITIONS_LENGTH 2
4
#define CAMERA_POSITIONS_ARRAY { (float4)(0, -5, 0, 0), (float4)(0, -5, 0, 10) }
5
6
#define CAMERA_FACING_DIRECTIONS_LENGTH 1
7
#define CAMERA_FACING_DIRECTIONS_ARRAY { (float4)(normalise((float3)(0, -1, 0)), 0) }
8
9
#define DISABLE_FREE_CAMERA_MANDELBROT false
10
11
float2
getSamplePoint
(
float
x,
float
y,
float
time
)
12
{
13
float
scale = pow(2.0f, max(
time
* 0.4f - 1.0f, 0.0f));
14
return
(float2)(-0.26559 + x / scale, -0.65065 + y / scale);
15
}
16
17
#include "
mandelbrot.cl
"
18
time
const uint const uint const float time
Definition:
main.cl:368
mandelbrot.cl
getSamplePoint
float2 getSamplePoint(float x, float y, float time)
Definition:
mandelbrot_zoom.cl:11
utils.cl
FractalGeometryRenderer
kernels
mandelbrot_zoom.cl
Generated by
1.9.3