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:
22
header/Lighting/LightEvaluation.h
Normal file
22
header/Lighting/LightEvaluation.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef LIGHT_EVALUATION_H
|
||||
#define LIGHT_EVALUATION_H
|
||||
|
||||
#include "Lighting/Light.h"
|
||||
#include "Material/Material.h"
|
||||
#include "Geometry/Triangle.h"
|
||||
#include "Rendering/Scene.h"
|
||||
|
||||
vec3s evaluate_bsdf_directional(const directional_light_t light, const light_shading_context_t* context, sobol_state_t* sobol_state);
|
||||
|
||||
inline vec3s evaluate_bsdf_sky(const scene_t* scene, const light_shading_context_t* context, sobol_state_t* sobol_state)
|
||||
{
|
||||
vec3s ske_color = glms_vec3_zero();
|
||||
if (scene->lights.sky_light.evaluate_bsdf_sky != NULL)
|
||||
{
|
||||
ske_color = scene->lights.sky_light.evaluate_bsdf_sky(scene->lights.sky_light.data, context, sobol_state);
|
||||
}
|
||||
|
||||
return ske_color;
|
||||
}
|
||||
|
||||
#endif // LIGHT_EVALUATION_H
|
||||
Reference in New Issue
Block a user