Adding normals
This commit is contained in:
parent
a84cfabd60
commit
368ae81251
6 changed files with 882 additions and 878 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue