Initial upload
This commit is contained in:
17
header/Algorithm/BSDF.h
Normal file
17
header/Algorithm/BSDF.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef BSDF_H
|
||||
#define BSDF_H
|
||||
|
||||
#include "Material.h"
|
||||
#include "cglm/types-struct.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
vec3s albedo;
|
||||
float roughness;
|
||||
float metallic;
|
||||
}simple_lit_data_t;
|
||||
|
||||
vec3s sample_bsdf_simple_lit(const void* data, const vec3s normal, const vec3s wo, float* pdf_out);
|
||||
vec3s evaluate_bsdf_simple_lit(const shading_context_t* context, const void* data);
|
||||
|
||||
#endif // BSDF_H
|
||||
11
header/Algorithm/PathTracing.h
Normal file
11
header/Algorithm/PathTracing.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#ifndef PATH_TRACING_H
|
||||
#define PATH_TRACING_H
|
||||
|
||||
#include "Common.h"
|
||||
#include "Material.h"
|
||||
#include "Triangle.h"
|
||||
|
||||
static hit_result_t ray_intersect(const triangle_t triangle, const ray_t ray);
|
||||
vec3s path_trace(const triangle_collection_t* triangles, const material_collection_t* materials, ray_t ray, int depth);
|
||||
|
||||
#endif // PATH_TRACING_H
|
||||
Reference in New Issue
Block a user