27 std::shared_ptr<Entities::SceneNode> sceneNode,
32 void tick(
double deltaTime)
override;
A camera component that provides view and projection matrices based on its SceneNode transform....
static constexpr const char * ComponentName
~VrCamera() override=default
glm::mat4 getEyeProjectionMatrix(size_t eyeIndex) const override
Gets the projection matrix for a specific eye. Base returns getProjectionMatrix() for both (mono).
Rendering::Headset * getHeadset() const
void tick(double deltaTime) override
Called every frame if ticking is enabled.
glm::mat4 getEyeViewMatrix(size_t eyeIndex) const override
Gets the view matrix for a specific eye. Base returns getViewMatrix() for both (mono).
static constexpr bool IsUnique
Rendering::Headset * headset_
VrCamera(Entities::Scene *owningScene, std::shared_ptr< Entities::SceneNode > sceneNode, Rendering::Headset *headset)
A scene is the overarching structure which can spawn, contain and destroy actors or entities.