TDME2 1.9.121
ShadowMapRenderShaderFoliageImplementation.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
5#include <tdme/tdme.h>
9
10using std::string;
11
15
16/**
17 * Shadow mapping foliage shader to render shadow map
18 * @author Andreas Drewke
19 * @version $Id$
20 */
22{
23private:
24 int32_t uniformSpeed { -1 };
26 int32_t uniformAmplitudeMax { -1 };
27
28public:
29 /**
30 * @return if supported by renderer
31 * @param renderer renderer
32 */
33 static bool isSupported(Renderer* renderer);
34
35 /**
36 * Public constructor
37 * @param renderer renderer
38 */
40
41 /**
42 * Destructor
43 */
45
46 // overridden methods
47 virtual const string getId() override;
48 virtual void initialize() override;
49 virtual void updateShaderParameters(Renderer* renderer, int contextIdx) override;
50
51};
virtual void updateShaderParameters(Renderer *renderer, int contextIdx) override
Update shader parameters.