added Scene::process{Camera,Options,TransformBlock}()
git-svn-id: svn://anubis/fart/trunk@168 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
1 parent
32fcafc687
commit
bb07e12193
4 files changed
+92
-13
No files matched your search
+9
-3
@@ -113,8 +113,10 @@ class LightNode : public Node
|
||||
{
|
||||
};
|
||||
|
||||
class LookAtNode : public Node
|
||||
class LookAtNode : public VectorNode
|
||||
{
|
||||
public:
|
||||
LookAtNode(refptr<Vector> vector) : VectorNode(vector) {}
|
||||
};
|
||||
|
||||
class MaterialNode : public Node
|
||||
@@ -153,8 +155,10 @@ class PlanePositionNode : public Node
|
||||
double m_dist;
|
||||
};
|
||||
|
||||
class PositionNode : public Node
|
||||
class PositionNode : public VectorNode
|
||||
{
|
||||
public:
|
||||
PositionNode(refptr<Vector> vector) : VectorNode(vector) {}
|
||||
};
|
||||
|
||||
class RadiusNode : public NumberNode
|
||||
@@ -256,8 +260,10 @@ class UnionNode : public Node
|
||||
bool isShape() { return true; }
|
||||
};
|
||||
|
||||
class UpNode : public Node
|
||||
class UpNode : public VectorNode
|
||||
{
|
||||
public:
|
||||
UpNode(refptr<Vector> vector) : VectorNode(vector) {}
|
||||
};
|
||||
|
||||
class VFOVNode : public Node
|
||||
|
||||
+4
-8
@@ -133,16 +133,13 @@ camera_items: /* empty */
|
||||
;
|
||||
|
||||
camera_item: POSITION vector {
|
||||
$$ = new PositionNode();
|
||||
$$->addChild($2);
|
||||
$$ = new PositionNode($2->getVector());
|
||||
}
|
||||
| LOOKAT vector {
|
||||
$$ = new LookAtNode();
|
||||
$$->addChild($2);
|
||||
$$ = new LookAtNode($2->getVector());
|
||||
}
|
||||
| UP vector {
|
||||
$$ = new UpNode();
|
||||
$$->addChild($2);
|
||||
$$ = new UpNode($2->getVector());
|
||||
}
|
||||
| VFOV vector {
|
||||
$$ = new VFOVNode();
|
||||
@@ -193,8 +190,7 @@ light_items: /* empty */
|
||||
;
|
||||
|
||||
light_item: POSITION vector {
|
||||
$$ = new PositionNode();
|
||||
$$->addChild($2);
|
||||
$$ = new PositionNode($2->getVector());
|
||||
}
|
||||
| DIFFUSE vector {
|
||||
$$ = new DiffuseNode($2->getVector());
|
||||
|
||||
Reference in new issue
Block a user