Skip to content

Commit

Permalink
docs(tesseratos): remove unnecessary camera
Browse files Browse the repository at this point in the history
  • Loading branch information
RiscadoA committed Feb 14, 2024
1 parent f57d6c6 commit c7bd933
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions tools/tesseratos/samples/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,5 @@ int main(int argc, char** argv)
input.bind(*bindings);
});

cubos.startupSystem("create a Camera").call([](ActiveCameras& camera, Commands cmds) {
camera.entities[0] =
cmds.create()
.add(Camera{.fovY = 60.0F, .zNear = 0.1F, .zFar = 1000.0F})
.add(LocalToWorld{})
.add(Position{{10.0F, 10.0F, 0.0F}})
.add(Rotation{glm::quatLookAt(glm::vec3{-1.0F, -1.0F, 0.0F}, glm::vec3{0.0F, 1.0F, 0.0F})})
.entity();
cmds.create().add(LocalToWorld{}).add(Position{{3.0F, 3.0F, 0.0F}}).entity();
});

cubos.run();
}

0 comments on commit c7bd933

Please sign in to comment.