More boilerplate

This commit is contained in:
Dynamitos
2025-01-24 18:21:34 +01:00
parent a5950cd471
commit fff6d19bb2
12 changed files with 169 additions and 17 deletions
+13
View File
@@ -3,11 +3,24 @@
#include "scene/AABB.h"
#include <vector>
// material infos
// shading parameter
// hit data
struct IntersectionInfo
{
float t;
glm::vec3 position;
glm::vec3 normal;
glm::vec3 albedo;
glm::vec3 emissive;
//....
};
class Model
{
public:
AABB boundingBox;
std::vector<glm::vec3> positions;
std::vector<uint32_t> indices;
std::optional<IntersectionInfo> intersect(Ray ray);
};
DECLARE_REF(Model)