summaryrefslogtreecommitdiff
path: root/Source/Asura.Editor/Graphics/Shaders/GUIText.shader.h
blob: a92e9a6998b2daf752a1f4f94d97a042856feca8 (plain)
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
#ifndef _ASURA_EDITOR_SHADER_H_
#include "../shader.h"
#endif

// 
static AsuraEditor::Graphics::ShaderProgram polygon_shader =
{
	R"(
in vec2 position; 

uniform mat4 mvp_matrix; 

void main() 
{
	gl_Position = mvp_matrix * vec4(position, 0, 1);
}

)",

R"(
uniform vec4 color;

void main() 
{
		gl_FragColor = color;
}

)"
};