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