2016-05-25 00:00:31 +00:00
|
|
|
static const char *nuklear_shader =
|
2016-04-17 03:48:06 +00:00
|
|
|
"struct input\n"
|
|
|
|
"{\n"
|
|
|
|
" float time;\n"
|
|
|
|
"};\n"
|
|
|
|
|
|
|
|
"void main_vertex\n"
|
|
|
|
"(\n"
|
|
|
|
" float4 position : POSITION,\n"
|
|
|
|
" float4 color : COLOR,\n"
|
|
|
|
" float2 texCoord : TEXCOORD0,\n"
|
|
|
|
|
|
|
|
" uniform float4x4 modelViewProj,\n"
|
|
|
|
|
|
|
|
" out float4 oPosition : POSITION,\n"
|
|
|
|
" out float4 oColor : COLOR,\n"
|
|
|
|
" out float2 otexCoord : TEXCOORD\n"
|
|
|
|
")\n"
|
|
|
|
"{\n"
|
|
|
|
" oPosition = mul(modelViewProj, position);\n"
|
|
|
|
" oColor = color;\n"
|
|
|
|
" otexCoord = texCoord;\n"
|
|
|
|
"}\n"
|
|
|
|
|
|
|
|
"struct output \n"
|
|
|
|
"{\n"
|
|
|
|
" float4 color : COLOR;\n"
|
|
|
|
"};\n"
|
|
|
|
|
|
|
|
|
|
|
|
"output main_fragment(float2 texCoord : TEXCOORD0, uniform sampler2D Texture : TEXUNIT0, uniform input IN)\n"
|
|
|
|
"{\n"
|
|
|
|
" output OUT;\n"
|
|
|
|
" OUT.color = tex2D(Texture, texCoord);\n"
|
|
|
|
" return OUT;\n"
|
|
|
|
"}\n"
|
2016-04-17 03:52:26 +00:00
|
|
|
;
|