projects
/
MicroTrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
solution for assignment 2.2: working flat shader
[MicroTrace.git]
/
FlatShader.cxx
diff --git
a/FlatShader.cxx
b/FlatShader.cxx
index
fcae006
..
3699cd4
100644
(file)
--- a/
FlatShader.cxx
+++ b/
FlatShader.cxx
@@
-12,7
+12,7
@@
FlatShader::~FlatShader()
}
FlatShader::FlatShader()
}
FlatShader::FlatShader()
- : Shader(0),
+ : Shader(0),
m_color(Vec3f())
{
}
m_color(Vec3f())
{
}
@@
-20,5
+20,5
@@
FlatShader::FlatShader()
Vec3f
FlatShader::Shade(Ray& ray)
{
Vec3f
FlatShader::Shade(Ray& ray)
{
- return
Vec3f();
+ return
m_color;
}
}
This page took
0.021675 seconds
and
4
git commands to generate.