More boilerplate
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user