UnitCellShaders.cpp 531 Bytes
Newer Older
1
2
3
4
5
6
7
#include "UnitCellShaders.h"

const char * const UnitCellShaders [] = {"Unit Cell Renderer",
	//vertex
	#ifdef WIN32
	"#version 410\n"
#else
8
	"#version 300 es\n"
9
10
11
12
13
14
15
16
17
18
19
20
#endif
	"uniform mat4 matrix;\n"
	"layout(location = 0) in vec3 pos;\n"
	"void main()\n"
	"{\n"
	"gl_Position = matrix * vec4(pos, 1);\n"
	"}\n"
	,
	//fragment
	#ifdef WIN32
	"#version 410\n"
#else
21
	"#version 300 es\n"
22
23
24
25
26
27
28
29
30
31
32
#endif
	"uniform lowp vec4 color;\n"
	"out lowp vec4 outputColor;\n"
	"void main()\n"
	"{\n"
	"	outputColor = color;\n"
	"}\n"
	,
	//tess
	nullptr
};