Adding more libraries

This commit is contained in:
Dynamitos
2025-05-13 12:52:14 +02:00
parent 16c56a9734
commit c3475ec41d
25 changed files with 19 additions and 10 deletions
+9 -6
View File
@@ -20,7 +20,7 @@ MeshShadingDemoGame::~MeshShadingDemoGame()
void MeshShadingDemoGame::setupScene(PScene scene, PSystemGraph graph)
{
flyCam = new FlyCam(scene);
flyCam->attachComponent<Component::PointLight>(Vector4(0, 0, 0, 0), Vector4(1, 1, 1, 2));
flyCam->attachComponent<Component::PointLight>(Vector(1, 1, 1), 1.0f, 2.0f);
flyCam->getCamera().mainCamera = true;
followCam = new PathFollowCam(scene);
@@ -184,10 +184,10 @@ void MeshShadingDemoGame::setupScene(PScene scene, PSystemGraph graph)
}
test = new StaticMeshActor(scene, AssetRegistry::findMesh("sponza", "sponza"));
test = new StaticMeshActor(scene, AssetRegistry::findMesh("rttest", "rttest"));
//test->getTransform().setScale(Vector(0.01, 0.01, 0.01));
for (int32 y = -40; y < 40; ++y)
/*for (int32 y = -40; y < 40; ++y)
{
for (int32 x = -40; x < 40; ++x)
{
@@ -196,10 +196,13 @@ void MeshShadingDemoGame::setupScene(PScene scene, PSystemGraph graph)
.height = 0,
});
}
}
}*/
pointLight = new PointLightActor(scene, Vector(5, 0, 0), 4, Vector(1, 1, 1), 1);
light = new DirectionalLightActor(scene, Vector(1, 1, 1), 1, Vector(1, -0.4, 0.2));
center = new PointLightActor(scene, Vector(0, 0, 0), 10, Vector(1, 1, 1), 10);
xAxis = new PointLightActor(scene, Vector(10, 0, 0), 10, Vector(1, 0, 0), 10);
yAxis = new PointLightActor(scene, Vector(0, 10, 0), 10, Vector(0, 1, 0), 10);
zAxis = new PointLightActor(scene, Vector(0, 0, 10), 10, Vector(0, 0, 1), 10);
light = new DirectionalLightActor(scene, Vector(1, 1, 1), 1, Vector(0.4, -0.4, 0));
graph->addSystem(new FlyCamSystem(scene));
graph->addSystem(new SplineCamSystem(scene));
}