TDME2 1.9.121
DeferredLightingShaderPBRFoliageImplementation.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
5#include <tdme/tdme.h>
9
12
13/**
14 * Lighting shader implementation
15 * @author Andreas Drewke
16 * @version $Id$
17 */
19{
20private:
21 int32_t uniformTime { -1 };
22 int32_t uniformSpeed { -1 };
24 int32_t uniformAmplitudeMax { -1 };
25
26public:
27 /**
28 * Public constructor
29 * @param renderer renderer
30 */
32
33 /**
34 * @return if supported by renderer
35 * @param renderer renderer
36 */
37 static bool isSupported(Renderer* renderer);
38
39 // overridden methods
40 virtual const string getId() override;
41 virtual void initialize() override;
42 virtual void registerShader() override;
43 virtual void useProgram(Engine* engine, int contextIdx) override;
44 virtual void updateShaderParameters(Renderer* renderer, int contextIdx) override;
45
46};
Engine main class.
Definition: Engine.h:122
virtual void updateShaderParameters(Renderer *renderer, int contextIdx) override
Update shader parameters.