TDME2 1.9.121
DeferredLightingShaderPBRTreeImplementation.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 };
23
24public:
25 /**
26 * Public constructor
27 * @param renderer renderer
28 */
30
31 /**
32 * @return if supported by renderer
33 * @param renderer renderer
34 */
35 static bool isSupported(Renderer* renderer);
36
37 // overridden methods
38 virtual const string getId() override;
39 virtual void initialize() override;
40 virtual void registerShader() override;
41 virtual void useProgram(Engine* engine, int contextIdx) override;
42 virtual void updateShaderParameters(Renderer* renderer, int contextIdx) override;
43
44};
Engine main class.
Definition: Engine.h:122
virtual void useProgram(Engine *engine, int contextIdx) override
Use lighting program.
virtual void updateShaderParameters(Renderer *renderer, int contextIdx) override
Update shader parameters.