Files
SimpleRayTracing/header/Rendering/Debug.h
Misaki 4b29de15cd Add AOV rendering support and related enhancements
Added support for rendering Arbitrary Output Variables (AOVs) for detailed outputs like beauty, albedo, normal, depth, and position.
Added new functions `render_aov` and `accumulate_aov` for AOV data management during rendering.
Added AOV rendering capabilities to the `SimpleLit` material with specific functions.
Changed the material system to include new function pointers for AOV rendering.
Changed the renderer to initialize and update AOV targets during the rendering process.
Changed the main rendering loop to handle AOVs and update render targets accordingly.
Fixed various minor issues, including function signature updates, variable name changes, and improved error handling for memory allocations.
2025-05-04 17:32:48 +09:00

20 lines
386 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_UV = 3,
} debug_mode_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