PerspectiveCameraUpdateSystem.ixx File
System that updates view and projection matrices for active perspective cameras. More...
Included Headers
#include <helios.engine.core.types.ComponentTypeTags>
#include <helios.math>
#include <helios.engine.spatial.components>
#include <helios.ecs.components>
#include <helios.engine.scene.components>
#include <helios.engine.runtime.world.UpdateContext>
#include <helios.engine.runtime.world.tags.SystemRole>
Namespaces Index
| namespace | helios |
| namespace | engine |
| namespace | scene |
| namespace | systems |
Classes Index
| class | PerspectiveCameraUpdateSystem<TMemberHandle> |
|
Updates camera transforms for active perspective cameras. More... | |
Description
System that updates view and projection matrices for active perspective cameras.
File Listing
The file content with the documentation metadata removed is:
20using namespace helios::engine::core::types;
22using namespace helios::engine::scene::components;
23using namespace helios::engine::spatial::components;
24using namespace helios::engine::runtime::world;
25using namespace helios::engine::runtime::world::tags;
26export namespace helios::engine::scene::systems {
37 class PerspectiveCameraUpdateSystem {
44 using EngineRoleTag = SystemRole;
51 void update(UpdateContext& updateContext) noexcept {
55 TMemberHandle,
62 >().whereEnabled()) {
65 vmc->setValue(helios::math::lookAt(
66 tcw->value().translation(),
67 tp3c->value(),
68 tcw->value().column(1).toVec3().normalize()
73 if (pcc->isDirty()) {
74 pmc->setValue(helios::math::perspective(
75 pcc->fovY(),
76 pcc->aspectRatio(),
77 pcc->zNear(),
78 pcc->zFar()
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.