Added: - Updated `.gitignore` to ignore the `[Bb]uild/` directory. - Additional tasks added to the roadmap in `README.md` for light unit standardization and GPU backend support. Changed: - Removed line in `settings.json` that disabled error squiggles for C/C++ code. - Modified `Triangle.h` to include `material_id` in `triangle_t` and reorganized properties. - Reordered parameters in `triangle_collection_init` for clarity. - Updated `shading_context_t` in `Material.h` and added size parameter to `material_create`. - Streamlined initialization in `scene_init` and updated `scene_free` for proper resource management. - Updated `window_create` in `Window.h` to accept a `render_job_t` parameter. - Introduced `renderer_start` in `Renderer.c` to handle rendering jobs and optimized pixel rendering logic.
19 lines
368 B
C
19 lines
368 B
C
#ifndef DEBUG_H
|
|
#define DEBUG_H
|
|
|
|
#include "Rendering/Scene.h"
|
|
#include "Algorithm/RayIntersection.h"
|
|
|
|
typedef enum
|
|
{
|
|
DEBUG_NONE = 0,
|
|
DEBUG_BVH = 1,
|
|
DEBUG_SOBOL = 2,
|
|
} debug_flag_t;
|
|
|
|
static const vec4s DEBUG_COLOR_BVH = {0.0f, 1.0f, 0.0f, 0.005f}; // Green
|
|
|
|
vec4s render_debug(scene_t* scene, ray_t ray, uint16_t sample_index, int flag);
|
|
|
|
#endif // DEBUG_H
|