removed static const Material::white (had a problem with C++ since the order that the static const constructors were being called in was not correct according to the order that the code depended on them), made Shape constructor use a common default material instead of recreating one every time
git-svn-id: svn://anubis/fart/trunk@174 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
1 parent
6a649ecac7
commit
84f6b04cd7
4 files changed
+12
-10
No files matched your search
+3
-4
@@ -15,18 +15,17 @@ void Scene::load(const char * filename)
|
||||
refptr<Node> node = parse(filename);
|
||||
processNode(node);
|
||||
|
||||
Transform transform;
|
||||
transform.translate(0, 2, 0);
|
||||
|
||||
#if 0
|
||||
refptr<Material> m = new Material();
|
||||
refptr<Shape> shape = new Sphere(0.5);
|
||||
shape->setTransform(transform);
|
||||
shape->setTransform(m_transforms.top());
|
||||
shape->setMaterial(m);
|
||||
m_shapes.push_back(shape);
|
||||
|
||||
refptr<Light> light = new PointLight();
|
||||
light->setPosition(Vector(2, -1, 2));
|
||||
m_lights.push_back(light);
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
Transform transform;
|
||||
|
||||
Reference in new issue
Block a user