// Luanti // SPDX-License-Identifier: LGPL-2.1-or-later // Copyright (C) 2010-2013 celeron55, Perttu Ahola // Copyright (C) 2017 numzero, Lobachevskiy Vitaliy #pragma once #include "core.h" #include "plain.h" #include "pipeline.h" /** * Offset camera for a specific eye in stereo rendering mode */ class OffsetCameraStep : public TrivialRenderStep { public: OffsetCameraStep(float eye_offset); OffsetCameraStep(bool right_eye); void run(PipelineContext &context) override; void reset(PipelineContext &context) override; private: core::matrix4 base_transform; core::matrix4 move; };