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:
21
header/Lighting/SkyLight.h
Normal file
21
header/Lighting/SkyLight.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef SKY_LIGHT_H
|
||||
#define SKY_LIGHT_H
|
||||
|
||||
#include "Light.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
vec3s color;
|
||||
} constant_sky_data_t;
|
||||
|
||||
vec3s evaluate_bsdf_const_sky(const void* data, const light_shading_context_t* context, sobol_state_t* sobol_state);
|
||||
|
||||
inline sky_light_t sky_create_constant_sky(constant_sky_data_t* data)
|
||||
{
|
||||
return (sky_light_t){
|
||||
.evaluate_bsdf_sky = evaluate_bsdf_const_sky,
|
||||
.data = data,
|
||||
};
|
||||
}
|
||||
|
||||
#endif // SKY_LIGHT_H
|
||||
Reference in New Issue
Block a user