#include "utils.cl"
#include "types.cl"
#include "sdf.cl"
#include "main.cl"
Go to the source code of this file.
◆ CAMERA_FACING_DIRECTIONS_ARRAY
| #define CAMERA_FACING_DIRECTIONS_ARRAY { (float4)(normalise((float3)(-1, 0, 0)), 0) } |
◆ CAMERA_FACING_DIRECTIONS_LENGTH
| #define CAMERA_FACING_DIRECTIONS_LENGTH 1 |
◆ CAMERA_POSITIONS_ARRAY
| #define CAMERA_POSITIONS_ARRAY { (float4)(5, 0, 0, 0) } |
◆ CAMERA_POSITIONS_LENGTH
| #define CAMERA_POSITIONS_LENGTH 1 |
◆ CAMERA_SPEED
| #define CAMERA_SPEED 2.5f |
◆ DISPLAY_BOUNDING_VOLUME
| #define DISPLAY_BOUNDING_VOLUME false |
◆ DO_RENDER_MARCHING_ITERATIONS
| #define DO_RENDER_MARCHING_ITERATIONS false |
◆ DO_RENDER_SURFACE_NORMALS
| #define DO_RENDER_SURFACE_NORMALS false |
◆ DO_SOFT_SHADOWS
| #define DO_SOFT_SHADOWS true |
◆ MAXIMUM_MARCH_DISTANCE
| #define MAXIMUM_MARCH_DISTANCE 15.0f |
◆ MAXIMUM_MARCH_STEPS
| #define MAXIMUM_MARCH_STEPS 256 |
◆ SCENE_BACKGROUND_COLOUR
| #define SCENE_BACKGROUND_COLOUR (float3)(0.3f, 0.3f, 0.3f) |
◆ SURFACE_INTERSECTION_EPSILON
| #define SURFACE_INTERSECTION_EPSILON 0.0001f |
◆ DE()
| float DE |
( |
float3 |
position, |
|
|
float |
time |
|
) |
| |
◆ getLight()
| Light getLight |
( |
float |
time | ) |
|
◆ getMaterial()
| Material getMaterial |
( |
float3 |
position, |
|
|
float |
time |
|
) |
| |
◆ len()
| float len |
( |
const float2 |
vec | ) |
|
◆ SDF()
| Material SDF |
( |
const float3 |
position, |
|
|
const float |
time, |
|
|
float * |
distance |
|
) |
| |