Refactor codebase. Add punctual light support

This commit is contained in:
2026-01-01 21:52:41 +09:00
parent acaaa2a86e
commit b41ea60c02
19 changed files with 246 additions and 99 deletions

View File

@@ -5,9 +5,6 @@
#include "Rendering/Texture.h"
#include "cglm/struct/vec3.h"
struct scene_t;
struct bvh_tree_t;
typedef struct
{
vec3s position;

View File

@@ -7,6 +7,7 @@
#include "Rendering/Scene.h"
path_output evaluate_bsdf_directional( directional_light_t light, const light_shading_context_t* context, vec3s throughput, uint32_t sample_index);
path_output evaluate_bsdf_punctual_light(punctual_light_t light, const light_shading_context_t* context, vec3s throughput, uint32_t sample_index);
inline path_output evaluate_bsdf_sky(const light_collection_t* lights, const light_shading_context_t* context, vec3s throughput, uint32_t sample_index)
{