TDME2 1.9.121
ShadowMapCreationShaderDefaultImplementation.cpp
Go to the documentation of this file.
2
3#include <string>
4
5#include <tdme/tdme.h>
9
10using std::to_string;
11
16
17bool ShadowMapCreationShaderDefaultImplementation::isSupported(Renderer* renderer) {
18 return true;
19}
20
22{
23}
24
26}
27
29 return "default";
30}
31
33{
34 auto shaderVersion = renderer->getShaderVersion();
35
36 // load shadow mapping creation shaders
39 "shader/" + shaderVersion + "/shadowmapping",
40 "creation_vertexshader.vert"
41 );
42 if (vertexShaderId == 0) return;
45 "shader/" + shaderVersion + "/shadowmapping",
46 "creation_fragmentshader.frag"
47 );
48 if (fragmentShaderId == 0) return;
49
50 // create shadow map creation program
54
55 //
57}
58
60}
virtual int32_t loadShader(int32_t type, const string &pathName, const string &fileName, const string &definitions=string(), const string &functions=string())=0
Loads a shader.
virtual int32_t createProgram(int type)=0
Creates a shader program.
virtual void attachShaderToProgram(int32_t programId, int32_t shaderId)=0
Attaches a shader to a program.
virtual void updateShaderParameters(Renderer *renderer, int contextIdx) override
Update shader parameters.
File system singleton class.
Definition: FileSystem.h:14