1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
typedef struct { float x, y, z; } Vec; typedef struct { Vec orig, dir; } Camera; typedef struct { unsigned int width, height; int superSamplingSize; int actvateFastRendering; int enableShadow; unsigned int maxIterations; float epsilon; float mu[4]; float light[3]; Camera camera; } RenderingConfig;