Realtime Fractal Renderer Documentation
mandelbrot.cl File Reference
#include "utils.cl"
#include "types.cl"
#include "sdf.cl"
#include "main.cl"
Include dependency graph for mandelbrot.cl:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DISABLE_FREE_CAMERA_MANDELBROT   true
 
#define MAXIMUM_MARCH_STEPS   100
 
#define MAXIMUM_MARCH_DISTANCE   50.0f
 
#define SURFACE_INTERSECTION_EPSILON   0.001f
 
#define CAMERA_FOCUS_DISTANCE   0.0001f
 
#define SCENE_BACKGROUND_COLOUR   (float3)(0.1f, 0.1f, 0.1f)
 
#define DO_AMBIENT_LIGHTING   true
 
#define DO_DIFFUSE_LIGHTING   false
 
#define DO_SPECULAR_HIGHLIGHTS   false
 
#define ITERATIONS   500
 
#define ESCAPE   4
 
#define SCALE   0.5f
 

Functions

float3 getMandelbrot (float2 position)
 
Light getLight (float time)
 
Material getMaterial (float3 position, float time)
 
float DE (float3 position, float time)
 

Macro Definition Documentation

◆ CAMERA_FOCUS_DISTANCE

#define CAMERA_FOCUS_DISTANCE   0.0001f

Definition at line 20 of file mandelbrot.cl.

◆ DISABLE_FREE_CAMERA_MANDELBROT

#define DISABLE_FREE_CAMERA_MANDELBROT   true

Definition at line 4 of file mandelbrot.cl.

◆ DO_AMBIENT_LIGHTING

#define DO_AMBIENT_LIGHTING   true

Definition at line 23 of file mandelbrot.cl.

◆ DO_DIFFUSE_LIGHTING

#define DO_DIFFUSE_LIGHTING   false

Definition at line 24 of file mandelbrot.cl.

◆ DO_SPECULAR_HIGHLIGHTS

#define DO_SPECULAR_HIGHLIGHTS   false

Definition at line 25 of file mandelbrot.cl.

◆ ESCAPE

#define ESCAPE   4

Definition at line 37 of file mandelbrot.cl.

◆ ITERATIONS

#define ITERATIONS   500

Definition at line 33 of file mandelbrot.cl.

◆ MAXIMUM_MARCH_DISTANCE

#define MAXIMUM_MARCH_DISTANCE   50.0f

Definition at line 18 of file mandelbrot.cl.

◆ MAXIMUM_MARCH_STEPS

#define MAXIMUM_MARCH_STEPS   100

Definition at line 17 of file mandelbrot.cl.

◆ SCALE

#define SCALE   0.5f

Definition at line 41 of file mandelbrot.cl.

◆ SCENE_BACKGROUND_COLOUR

#define SCENE_BACKGROUND_COLOUR   (float3)(0.1f, 0.1f, 0.1f)

Definition at line 21 of file mandelbrot.cl.

◆ SURFACE_INTERSECTION_EPSILON

#define SURFACE_INTERSECTION_EPSILON   0.001f

Definition at line 19 of file mandelbrot.cl.

Function Documentation

◆ DE()

float DE ( float3  position,
float  time 
)

Definition at line 129 of file mandelbrot.cl.

◆ getLight()

Light getLight ( float  time)

Definition at line 97 of file mandelbrot.cl.

◆ getMandelbrot()

float3 getMandelbrot ( float2  position)

Definition at line 44 of file mandelbrot.cl.

◆ getMaterial()

Material getMaterial ( float3  position,
float  time 
)

Definition at line 117 of file mandelbrot.cl.