adding brdf, but virtual is probably terrible for performance

This commit is contained in:
Dynamitos
2025-01-26 15:27:43 +01:00
parent 8fdaff1e4c
commit 98020d4455
9 changed files with 104 additions and 24 deletions
+16
View File
@@ -1,8 +1,24 @@
#pragma once
#include <glm/glm.hpp>
struct Payload
{
glm::vec3 accumulatedRadiance = glm::vec3(0);
glm::vec3 accumulatedMaterial = glm::vec3(0);
};
struct Ray
{
glm::vec3 origin;
glm::vec3 direction;
uint32_t depth = 0;
Payload payload;
};
struct HitInfo
{
float t;
glm::vec3 position;
glm::vec3 normal;
glm::vec2 texCoords;
};