Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
dynamicshadowsrender.cpp File Reference
#include <cstring>
#include <cmath>
#include "client/shadows/dynamicshadowsrender.h"
#include "client/shadows/shadowsScreenQuad.h"
#include "client/shadows/shadowsshadercallbacks.h"
#include "settings.h"
#include "filesys.h"
#include "util/string.h"
#include "client/shader.h"
#include "client/client.h"
#include "client/clientmap.h"
#include "profiler.h"
#include "EShaderTypes.h"
#include "IGPUProgrammingServices.h"
#include "IMaterialRenderer.h"
#include <IVideoDriver.h>
+ Include dependency graph for dynamicshadowsrender.cpp:

Functions

ShadowRenderercreateShadowRenderer (IrrlichtDevice *device, Client *client)
 Create a shadow renderer if settings allow this.
 

Function Documentation

◆ createShadowRenderer()

ShadowRenderer * createShadowRenderer ( IrrlichtDevice * device,
Client * client )

Create a shadow renderer if settings allow this.

Parameters
deviceDevice to be used to render shadows.
clientReference to the client context.
Returns
A new ShadowRenderer instance or nullptr if shadows are disabled or not supported.

References g_settings, Settings::getBool(), ShadowRenderer::initialize(), and Settings::setBool().

Referenced by createPipeline().

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