Adding car model
This commit is contained in:
@@ -14,9 +14,13 @@ MeshShadingDemoGame::~MeshShadingDemoGame()
|
||||
|
||||
void MeshShadingDemoGame::setupScene(PScene scene, PSystemGraph graph)
|
||||
{
|
||||
//cube = new StaticMeshActor(scene, AssetRegistry::findMesh("cube"));
|
||||
// cube->accessComponent<Component::Transform>().setScale(Vector(50, 50, 50));
|
||||
chapel = new StaticMeshActor(scene, AssetRegistry::findMesh("Whitechapel/Whitechapel"));
|
||||
cube = new StaticMeshActor(scene, AssetRegistry::findMesh("", "cube"));
|
||||
cube->getTransform().setPosition(Vector(200, 0, 40));
|
||||
cube->getTransform().setRotation(Quaternion(Vector(0, 1, 0.6f)));
|
||||
cube->getTransform().setScale(Vector(50, 50, 50));
|
||||
//car = new StaticMeshActor(scene, AssetRegistry::findMesh("Volvo", "Volvo S90"));
|
||||
//chapel = new StaticMeshActor(scene, AssetRegistry::findMesh("Whitechapel", "Whitechapel"));
|
||||
//test = new StaticMeshActor(scene, AssetRegistry::findMesh("", "Arissa"));
|
||||
camera = new FlyCam(scene);
|
||||
light = new DirectionalLightActor(scene, Vector4(1, 1, 1, 1), Vector(0, -1, 0));
|
||||
graph->addSystem(new FlyCamSystem(scene));
|
||||
|
||||
Reference in New Issue
Block a user