15#ifndef PARALLAXSTAGE_H_6014714286
16#define PARALLAXSTAGE_H_6014714286
69 const std::unique_ptr< Details > pimpl;
104 ,
bool isFirstInvocation
105 ,
bool isFirstSource )
override;
Defines LibCarna::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 ~ParallaxStage()
Deletes.
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.
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.