Refactor codebase. Add punctual light support
This commit is contained in:
@@ -5,9 +5,6 @@
|
||||
#include "Rendering/Texture.h"
|
||||
#include "cglm/struct/vec3.h"
|
||||
|
||||
struct scene_t;
|
||||
struct bvh_tree_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
vec3s position;
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user