Realtime Fractal Renderer Documentation
sphere_box.cl File Reference
#include "types.cl"
#include "sdf.cl"
#include "main.cl"
Include dependency graph for sphere_box.cl:

Go to the source code of this file.

Macros

#define CAMERA_POSITIONS_LENGTH   1
 
#define CAMERA_POSITIONS_ARRAY   { (float4)(10, -10, -10, 0) }
 
#define CAMERA_FACING_DIRECTIONS_LENGTH   1
 
#define CAMERA_FACING_DIRECTIONS_ARRAY   { (float4)(normalise((float3)(-10, -10, -10)), 0.0f) }
 
#define SCENE_BACKGROUND_COLOUR   (float3)(0.78f, 0.78f, 0.73f)
 
#define SURFACE_INTERSECTION_EPSILON   0.00001f
 
#define MAXIMUM_MARCH_STEPS   200
 
#define MAXIMUM_MARCH_DISTANCE   50.0f
 
#define DO_HARD_SHADOWS   true
 

Functions

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

Macro Definition Documentation

◆ CAMERA_FACING_DIRECTIONS_ARRAY

#define CAMERA_FACING_DIRECTIONS_ARRAY   { (float4)(normalise((float3)(-10, -10, -10)), 0.0f) }

Definition at line 5 of file sphere_box.cl.

◆ CAMERA_FACING_DIRECTIONS_LENGTH

#define CAMERA_FACING_DIRECTIONS_LENGTH   1

Definition at line 4 of file sphere_box.cl.

◆ CAMERA_POSITIONS_ARRAY

#define CAMERA_POSITIONS_ARRAY   { (float4)(10, -10, -10, 0) }

Definition at line 2 of file sphere_box.cl.

◆ CAMERA_POSITIONS_LENGTH

#define CAMERA_POSITIONS_LENGTH   1

Definition at line 1 of file sphere_box.cl.

◆ DO_HARD_SHADOWS

#define DO_HARD_SHADOWS   true

Definition at line 14 of file sphere_box.cl.

◆ MAXIMUM_MARCH_DISTANCE

#define MAXIMUM_MARCH_DISTANCE   50.0f

Definition at line 11 of file sphere_box.cl.

◆ MAXIMUM_MARCH_STEPS

#define MAXIMUM_MARCH_STEPS   200

Definition at line 10 of file sphere_box.cl.

◆ SCENE_BACKGROUND_COLOUR

#define SCENE_BACKGROUND_COLOUR   (float3)(0.78f, 0.78f, 0.73f)

Definition at line 7 of file sphere_box.cl.

◆ SURFACE_INTERSECTION_EPSILON

#define SURFACE_INTERSECTION_EPSILON   0.00001f

Definition at line 9 of file sphere_box.cl.

Function Documentation

◆ DE()

float DE ( float3  position,
float  time 
)

Definition at line 42 of file sphere_box.cl.

◆ getLight()

Light getLight ( float  time)

Definition at line 19 of file sphere_box.cl.

◆ getMaterial()

Material getMaterial ( float3  position,
float  time 
)

Definition at line 30 of file sphere_box.cl.