Files
SimpleRayTracing/header/Rendering/Camera.h
Misaki 6800810369 Update project structure and improve performance
Added new files for BVH, AABB, and Debug functionalities.
Added new utility functions in Common.h.
Added gamma correction function in PostProcessing.h.
Changed the return type of path_trace to vec4s for alpha blending.
Changed BSDF function signatures to include sample index and bounce.
Changed the BSDF.h to replace inline functions with declarations.
Changed the Light and SkyLight evaluation functions to include throughput and sample index.
Changed the sphere creation function in GeometryUtilities.h for better quality.
Changed the scene structure to include a BVH tree for improved ray intersection.
Changed the scene initialization parameters for better performance.
Created new Debug functions for ray intersection counting.
Created new functions for triangle collection management in Triangle.c.
Improved pixel updating logic in Window.c.
Improved ray intersection performance with new BVH implementation.
Removed unused includes from Common.h.
Removed old library linking methods in CMakeLists.txt.
2025-04-21 15:56:19 +09:00

27 lines
532 B
C

#ifndef CAMERA_H
#define CAMERA_H
#include "cglm/struct/vec3.h"
#include "cglm/types-struct.h"
typedef struct
{
// TODO: Use mat4s instead of vec3s for position, forward, up and right
vec3s position;
vec3s forward;
vec3s up;
vec3s right;
float focal_length;
float size_x;
float size_y;
float aspect_ratio;
float fov_x;
float fov_y;
} camera_t;
camera_t camera_create(vec3s position, vec3s forward, vec3s up, float focal_length, float size_x, float aspect_ratio);
#endif // CAMERA_H