Adding normals

This commit is contained in:
IlyaShurupov 2023-10-17 20:51:25 +03:00
parent cfb4c0cfcc
commit 97f79a6483
6 changed files with 882 additions and 878 deletions

View file

@ -12,10 +12,16 @@ namespace tp {
extern ModuleManifest gModuleRayTracer;
class Scene {
class Object {
public:
typedef Topology Object;
Object() = default;
public:
Topology mTopology;
TopologyCache mCache;
};
class Scene {
public:
Scene() = default;
@ -40,7 +46,7 @@ namespace tp {
private:
struct RayCastData {
const Scene::Object* obj = nullptr;
const Object* obj = nullptr;
TrigCache* trig = nullptr;
Vec3F hitPos = {0, 0, 0};
bool hit = false;