projects
/
MicroTrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
WORKING ReflectiveEyelightShader \o/
[MicroTrace.git]
/
Primitive.hxx
diff --git
a/Primitive.hxx
b/Primitive.hxx
index
f147b35
..
04e201f
100644
(file)
--- a/
Primitive.hxx
+++ b/
Primitive.hxx
@@
-2,11
+2,21
@@
#define PRIMITIVE_HXX
#include "Ray.hxx"
#define PRIMITIVE_HXX
#include "Ray.hxx"
+#include "Shader.hxx"
class Primitive
{
public:
class Primitive
{
public:
+ Primitive(Shader* shader = 0);
+ virtual ~Primitive();
+
virtual bool Intersect(Ray &ray) = 0;
virtual bool Intersect(Ray &ray) = 0;
+ virtual bool Occluded(Ray& ray);
+ virtual Vec3f GetNormal(Ray& ray) = 0;
+
+ Shader* shader();
+protected:
+ Shader* m_shader;
};
#endif
};
#endif
This page took
0.020178 seconds
and
4
git commands to generate.