Enhance graphics library functionality and structure
Added new function signatures in `assimp-vc143-mt.lib` for improved logging, parsing, and vector operations. Added new metadata and configuration information in `assimp-vc143-mt.dll` for versioning and licensing compliance. Added Sobol sequence generation in `Sobol.c` for quasi-random sampling. Added window message handling in `Window.c` for rendering graphics. Added ray-triangle intersection tests in `RayIntersection.c` for collision detection. Added functions for loading mesh data in `Mesh.c` to support 3D model import. Added functions for managing triangle collections in `Triangle.c` to enhance geometric data handling. Added light evaluation functions in `LightEvaluation.c` and `SkyLight.c` for realistic rendering. Added sampling and evaluation functions for simple lit materials in `SimpleLit.c`. Changed various header files to include copyright and licensing information. Changed existing functions in multiple files to improve performance and clarity. Removed unused code in several files to streamline the library.
This commit is contained in:
23
header/Material/SimpleLit.h
Normal file
23
header/Material/SimpleLit.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef SIMPLE_LIT_H
|
||||
#define SIMPLE_LIT_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, sobol_state_t* sobol_state, float* pdf_out);
|
||||
vec3s evaluate_bsdf_simple_lit(const shading_context_t* context, const void* data);
|
||||
float sample_bsdf_pdf_simple_lit(const void* data, const vec3s normal, const vec3s wo, const vec3s wi);
|
||||
|
||||
inline material_entity_t material_create_simple_lit(simple_lit_data_t* lit_data, material_collection_t* collection)
|
||||
{
|
||||
return material_create(sample_bsdf_simple_lit, sample_bsdf_pdf_simple_lit, evaluate_bsdf_simple_lit, lit_data, collection);
|
||||
}
|
||||
|
||||
#endif // SIMPLE_LIT_H
|
||||
Reference in New Issue
Block a user