TDME2 1.9.121
LightingShaderLightScatteringFoliageImplementation.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 uniformSpeed { -1 };
23 int32_t uniformAmplitudeMax { -1 };
24
25public:
26 /**
27 * Public constructor
28 * @param renderer renderer
29 */
31
32 /**
33 * @return if supported by renderer
34 * @param renderer renderer
35 */
36 static bool isSupported(Renderer* renderer);
37
38 // overridden methods
39 virtual const string getId() override;
40 virtual void initialize() override;
41 virtual void registerShader() override;
42 virtual void updateShaderParameters(Renderer* renderer, int contextIdx) override;
43
44};
virtual void updateShaderParameters(Renderer *renderer, int contextIdx) override
Update shader parameters.