Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
shadowsScreenQuad.h
Go to the documentation of this file.
1// Luanti
2// SPDX-License-Identifier: LGPL-2.1-or-later
3// Copyright (C) 2021 Liso <anlismon@gmail.com>
4
5#pragma once
7#include <IMaterialRendererServices.h>
8#include <IShaderConstantSetCallBack.h>
9#include "client/shader.h"
10
12{
13public:
15
16 void render(video::IVideoDriver *driver);
17 video::SMaterial &getMaterial() { return Material; }
18
19private:
20 video::S3DVertex Vertices[6];
21 video::SMaterial Material;
22};
23
24class shadowScreenQuadCB : public video::IShaderConstantSetCallBack
25{
26public:
27 virtual void OnSetConstants(video::IMaterialRendererServices *services,
28 s32 userData);
29private:
32 m_sm_client_map_trans_setting{"ShadowMapClientMapTraslucent"};
34 m_sm_dynamic_sampler_setting{"ShadowMapSamplerdynamic"};
35};
Definition shader.h:146
Definition shadowsScreenQuad.h:25
CachedPixelShaderSetting< s32 > m_sm_dynamic_sampler_setting
Definition shadowsScreenQuad.h:34
CachedPixelShaderSetting< s32 > m_sm_client_map_setting
Definition shadowsScreenQuad.h:30
virtual void OnSetConstants(video::IMaterialRendererServices *services, s32 userData)
Definition shadowsScreenQuad.cpp:35
CachedPixelShaderSetting< s32 > m_sm_client_map_trans_setting
Definition shadowsScreenQuad.h:32
Definition shadowsScreenQuad.h:12
void render(video::IVideoDriver *driver)
Definition shadowsScreenQuad.cpp:27
video::SMaterial Material
Definition shadowsScreenQuad.h:21
video::S3DVertex Vertices[6]
Definition shadowsScreenQuad.h:20
shadowScreenQuad()
Definition shadowsScreenQuad.cpp:8
video::SMaterial & getMaterial()
Definition shadowsScreenQuad.h:17