it does something

This commit is contained in:
Dynamitos
2025-01-26 19:43:06 +01:00
parent 98020d4455
commit cc2f92aaab
12 changed files with 199 additions and 89 deletions
+6 -3
View File
@@ -4,15 +4,15 @@
struct Payload
{
glm::vec3 accumulatedRadiance = glm::vec3(0);
glm::vec3 accumulatedMaterial = glm::vec3(0);
glm::vec3 accumulatedMaterial = glm::vec3(1);
uint32_t depth = 0;
float emissive = 1;
};
struct Ray
{
glm::vec3 origin;
glm::vec3 direction;
uint32_t depth = 0;
Payload payload;
};
struct HitInfo
@@ -20,5 +20,8 @@ struct HitInfo
float t;
glm::vec3 position;
glm::vec3 normal;
// not entirely sure what that does
// its the normal being flipped based on some dot product
glm::vec3 normalLight;
glm::vec2 texCoords;
};