summaryrefslogtreecommitdiff
path: root/Source/Asura.Editor/Graphics/shaders/image.shader.h
blob: cbdd542f04371e4765fc80eca0004b182df5b0fc (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
30
31
32
33
34
35
#ifndef _ASURA_EDITOR_SHADER_H_
#include "../shader.h"
#endif

// 
static AsuraEditor::Graphics::ShaderProgram image_shader =
{
R"(
in vec2 asura_position; 
in vec2 asura_texcoord0; 

uniform mat4 asura_model_matrix; 
uniform mat4 asura_view_matrix; 
uniform mat4 asura_projection_matrix; 

void main() 
{
	gl_Position = asura_projection_matrix * asura_view_matrix * asura_model_matrix * vec4(asura_position, 0, 1);
	uv = asura_texcoord0;
}

)",

R"(
in vec2 uv;

uniform sampler2D asura_maintex;

void main() 
{
		
}

)"
};