|
Realtime Fractal Renderer Documentation
|
A hello world scene can be found here kernels/hello_world.cl. It's recommended to copy and paste this file and to start creating your scene from that template.
The table below contains a list of the key files that may need to be referenced when creating a scene.
| File | Description |
|---|---|
| kernels/include/defines.cl | Contains all renderer settings |
| kernels/include/types.cl | Contains type definitions |
| kernels/include/utils.cl | Contains utility methods |
| kernels/include/sdf.cl | Contains some common signed distance functions |
The table below contains a list of example scenes.
| File | Description |
|---|---|
| kernels/mandelbulb.cl | |
| kernels/sierpinski_collection.cl | |
| kernels/mandelbrot_zoom.cl | |
| kernels/planet.cl | |
| kernels/terrain.cl |
The file defines.cl contains a full list of available commands when developing scenes. Key debugging commands include: DO_RENDER_SURFACE_NORMALS which renders geometry surface normals in place of their material, DO_RENDER_MARCHING_ITERATIONS which renders the number of iterations completed by each ray as a gradient colour, and DISPLAY_BOUNDING_VOLUME which renders bounding volumes for geometry.
Screenshots of the output of these commands can be found in the image gallery https://solomonbaarda.github.io/fractal-geometry-renderer/FractalGeometryRenderer/screenshots/Gallery/index.html