Skip to content

Commit

Permalink
hit record
Browse files Browse the repository at this point in the history
  • Loading branch information
Kakapio committed Apr 4, 2023
1 parent 9b84c12 commit 27771a4
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions HitRecord.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#ifndef __HITRECORD__
#define __HITRECORD__

#include <glm/glm.hpp>
#include "Material.h"
#include "TextureImage.h"
#define _USE_MATH_DEFINES
#include <cmath>

const float MaxFloat = MAXFLOAT;

struct HitRecord {
float time = MaxFloat;
glm::vec3 intersection;
glm::vec3 normal;
util::Material* mat = NULL;
glm::vec2 texCoord;
util::TextureImage* texture = NULL;

private:
};

#endif

0 comments on commit 27771a4

Please sign in to comment.