adding brdf, but virtual is probably terrible for performance
This commit is contained in:
+3
-9
@@ -1,20 +1,14 @@
|
||||
#pragma once
|
||||
#include "Minimal.h"
|
||||
#include "Material.h"
|
||||
#include "scene/AABB.h"
|
||||
#include <optional>
|
||||
#include <vector>
|
||||
|
||||
// material infos
|
||||
// shading parameter
|
||||
// hit data
|
||||
struct IntersectionInfo
|
||||
{
|
||||
float t;
|
||||
glm::vec3 position;
|
||||
glm::vec3 normal;
|
||||
glm::vec3 albedo;
|
||||
glm::vec3 emissive;
|
||||
//....
|
||||
HitInfo hitInfo;
|
||||
MaterialInfo shadingInfo;
|
||||
};
|
||||
class Model
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user