added Color::operator*=(), added jitter computation to reflectance and transparency recursion, recursing now but there is still a jitter or recursion issue
git-svn-id: svn://anubis/fart/trunk@182 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
1 parent
1f00625379
commit
e233056880
9 files changed
+71
-22
No files matched your search
@@ -10,7 +10,6 @@ static bool default_material_initialized = false;
|
||||
|
||||
Shape::Shape()
|
||||
{
|
||||
m_transparency = 0.0;
|
||||
if (default_material_initialized == false)
|
||||
{
|
||||
default_material = new Material();
|
||||
|
||||
@@ -106,16 +106,12 @@ class Shape
|
||||
}
|
||||
Transform & getTransform() { return m_transform; }
|
||||
|
||||
void setTransparency(double t) { m_transparency = t; }
|
||||
double getTransparency() const { return m_transparency; }
|
||||
|
||||
void setMaterial(refptr<Material> material) { m_material = material; }
|
||||
refptr<Material> getMaterial() const { return m_material; }
|
||||
|
||||
protected:
|
||||
Transform m_transform;
|
||||
Transform m_inverse;
|
||||
double m_transparency;
|
||||
refptr<Material> m_material;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user