Update project files and enhance rendering system

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.
This commit is contained in:
2025-04-23 22:24:02 +09:00
parent 9cc420693c
commit 17872804c5
24 changed files with 523083 additions and 807 deletions

18
header/Rendering/Debug.h Normal file
View File

@@ -0,0 +1,18 @@
#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