12#ifndef PARALLAXSTAGE_H_6014714286
13#define PARALLAXSTAGE_H_6014714286
66 const std::unique_ptr< Details > pimpl;
103 ,
bool isFirstInvocation
104 ,
bool isFirstSource )
override;
Defines Carna::presets::CompositionStage.
Invokes the rendering stages of the frame renderer successively.
Defines a rendering viewport. The viewport is a property of the current OpenGL context.
Defines rendering stage that combines two other renderings either by putting them next to each other ...
CompositionMode
Defines how two renderings are to be combined.
Produces stereoscopic renderings.
float eyeDistance() const
Tells the double of the distance that the camera is offset to left/right.
virtual void renderPass(const base::math::Matrix4f &viewTransform, base::RenderTask &rt, const base::Viewport &vp, bool isFirstInvocation, bool isFirstSource) override
Renders one of the two renderings that are to be combined per invocation.
virtual ~ParallaxStage()
Deletes.
ParallaxStage * clone() const override
Returns same RenderStage implementation with same configuration.
static const float DEFAULT_EYE_DISTANCE
Holds the default double distance that the camera is offset to left/right.
ParallaxStage(CompositionMode compositionMode)
Sets the eye distance to DEFAULT_EYE_DISTANCE.
void setEyeDistance(float)
Sets the double of the distance that the camera is offset to left/right.
Eigen::Matrix< float, 4, 4, Eigen::ColMajor > Matrix4f
Defines matrix.