Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
plain.cpp File Reference
#include "plain.h"
#include "secondstage.h"
#include "client/camera.h"
#include "client/client.h"
#include "client/clientmap.h"
#include "client/hud.h"
#include "client/minimap.h"
#include "client/shadows/dynamicshadowsrender.h"
+ Include dependency graph for plain.cpp:

Functions

std::unique_ptr< RenderStepcreate3DStage (Client *client, v2f scale)
 
static v2f getDownscaleFactor ()
 
RenderStepaddUpscaling (RenderPipeline *pipeline, RenderStep *previousStep, v2f downscale_factor, Client *client)
 
void populatePlainPipeline (RenderPipeline *pipeline, Client *client)
 
video::ECOLOR_FORMAT selectColorFormat (video::IVideoDriver *driver)
 
video::ECOLOR_FORMAT selectDepthFormat (video::IVideoDriver *driver)
 

Function Documentation

◆ addUpscaling()

RenderStep * addUpscaling ( RenderPipeline * pipeline,
RenderStep * previousStep,
v2f downscale_factor,
Client * client )

References RenderPipeline::addStep(), RenderPipeline::createOwned(), g_settings, Settings::getBool(), selectColorFormat(), selectDepthFormat(), RenderStep::setRenderSource(), RenderStep::setRenderTarget(), and TextureBuffer::setTexture().

Referenced by populatePlainPipeline().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ create3DStage()

std::unique_ptr< RenderStep > create3DStage ( Client * client,
v2f scale )

References addPostProcessing(), RenderPipeline::addStep(), g_settings, Settings::getBool(), RenderPipeline::getOutput(), and RenderPipeline::own().

Referenced by populateAnaglyphPipeline(), populateInterlacedPipeline(), populatePlainPipeline(), and populateSideBySidePipeline().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDownscaleFactor()

static v2f getDownscaleFactor ( )
static

References g_settings, Settings::getU16(), and MYMAX.

Referenced by populatePlainPipeline().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ populatePlainPipeline()

void populatePlainPipeline ( RenderPipeline * pipeline,
Client * client )

References RenderPipeline::addStep(), addUpscaling(), create3DStage(), RenderPipeline::createOwned(), getDownscaleFactor(), RenderPipeline::own(), and MapPostFxStep::setRenderTarget().

Referenced by createPipeline().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ selectColorFormat()

video::ECOLOR_FORMAT selectColorFormat ( video::IVideoDriver * driver)

Referenced by addPostProcessing(), addUpscaling(), and populateSideBySidePipeline().

+ Here is the caller graph for this function:

◆ selectDepthFormat()

video::ECOLOR_FORMAT selectDepthFormat ( video::IVideoDriver * driver)

Referenced by addPostProcessing(), addUpscaling(), and populateSideBySidePipeline().

+ Here is the caller graph for this function: