even more assets
This commit is contained in:
@@ -26,7 +26,7 @@ void MeshShadingDemoGame::setupScene(PScene scene, PSystemGraph graph)
|
||||
followCam = new PathFollowCam(scene);
|
||||
//followCam->getCamera().mainCamera = true;
|
||||
|
||||
{
|
||||
/* {
|
||||
Array<Vector> lightPoints = {
|
||||
Vector(13.542, 3.12369, -12.3293),
|
||||
Vector(20.6668, 3.04548, -20.9486),
|
||||
@@ -119,7 +119,7 @@ void MeshShadingDemoGame::setupScene(PScene scene, PSystemGraph graph)
|
||||
path->attachComponent<Path>(p);
|
||||
chapel = new StaticMeshActor(scene, AssetRegistry::findMesh("Whitechapel", "Whitechapel"));
|
||||
followCam->getPathFollow().path = path;
|
||||
}
|
||||
}*/
|
||||
/*
|
||||
{
|
||||
Path p = Path({
|
||||
@@ -166,7 +166,7 @@ void MeshShadingDemoGame::setupScene(PScene scene, PSystemGraph graph)
|
||||
//followCam->getPathFollow().path = path;
|
||||
//minecraft = new StaticMeshActor(scene, AssetRegistry::findMesh("minecraft", "minecraft-medieval-city"));
|
||||
//minecraft->getTransform().setScale(Vector(0.01, 0.01, 0.01));
|
||||
}/*
|
||||
}
|
||||
{
|
||||
Path p = Path({
|
||||
Vector(89.3805, 153.648, 270.467),
|
||||
@@ -182,9 +182,9 @@ void MeshShadingDemoGame::setupScene(PScene scene, PSystemGraph graph)
|
||||
//followCam->getPathFollow().path = path;
|
||||
//volvo = new StaticMeshActor(scene, AssetRegistry::findMesh("Volvo", "Volvo"));
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
//test = new StaticMeshActor(scene, AssetRegistry::findMesh("", "plane"));
|
||||
test = new StaticMeshActor(scene, AssetRegistry::findMesh("", "rttest"));
|
||||
//test->getTransform().setScale(Vector(0.01, 0.01, 0.01));
|
||||
|
||||
for (int32 y = -40; y < 40; ++y)
|
||||
@@ -198,7 +198,8 @@ void MeshShadingDemoGame::setupScene(PScene scene, PSystemGraph graph)
|
||||
}
|
||||
}
|
||||
|
||||
light = new DirectionalLightActor(scene, Vector4(1, 1, 1, 0.1), Vector(-1, -0.4, 0.2));
|
||||
//pointLight = new PointLightActor(scene, Vector(5, 0, 0), Vector(1, 1, 1), 100);
|
||||
light = new DirectionalLightActor(scene, Vector4(1, 1, 1, 0.1), Vector(1, -0.4, 0.2));
|
||||
graph->addSystem(new FlyCamSystem(scene));
|
||||
graph->addSystem(new SplineCamSystem(scene));
|
||||
}
|
||||
|
||||
@@ -24,6 +24,7 @@ private:
|
||||
OFlyCam flyCam;
|
||||
OPathFollowCam followCam;
|
||||
ODirectionalLightActor light;
|
||||
OPointLightActor pointLight;
|
||||
};
|
||||
|
||||
extern "C" MESHSHADINGDEMO_API Game* createInstance();
|
||||
|
||||
Reference in New Issue
Block a user