forked from SirDifferential/instrument_controller
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshader_perVertexLighting.cpp
More file actions
62 lines (48 loc) · 883 Bytes
/
shader_perVertexLighting.cpp
File metadata and controls
62 lines (48 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#include "shader_perVertexLighting.hpp"
#include "manager.hpp"
ShaderPVL::ShaderPVL(const char* vs_filepath, const char* fs_filepath) : Shader(vs_filepath, fs_filepath)
{
fprintf(stderr, "ShaderPVL constructing\n");
std::string path = "data/2D/colorMap.png";
std::shared_ptr<Sprite> temp(new Sprite(path));
colorMap = temp;
}
ShaderPVL::~ShaderPVL()
{
}
void ShaderPVL::update()
{
use();
set_int("size_x", 1024);
set_int("size_y", 1024);
set_float("time", manager.getTime()*10+1000);
set_int("colorMap", 0);
colorMap->bind(0);
}
void ShaderPVL::action1()
{
}
void ShaderPVL::action2()
{
}
void ShaderPVL::action3()
{
}
void ShaderPVL::action4()
{
}
void ShaderPVL::action5()
{
}
void ShaderPVL::action6()
{
}
void ShaderPVL::action7()
{
}
void ShaderPVL::action8()
{
}
void ShaderPVL::synthAction(unsigned char input_data[])
{
}