RetroArch/gfx/drivers/gl_shaders/pipeline_nuklear.cg.h

39 lines
756 B
C
Raw Normal View History

2016-05-28 16:43:00 +00:00
#include "shaders_common.h"
2016-06-08 03:26:33 +00:00
static const char *nuklear_shader = CG(
2016-05-28 16:43:00 +00:00
struct input
{
float time;
};
2016-05-28 16:43:00 +00:00
void main_vertex
(
float4 position : POSITION,
float4 color : COLOR,
float2 texCoord : TEXCOORD0,
2016-05-28 16:43:00 +00:00
uniform float4x4 modelViewProj,
2016-05-28 16:43:00 +00:00
out float4 oPosition : POSITION,
out float4 oColor : COLOR,
out float2 otexCoord : TEXCOORD
)
{
oPosition = mul(modelViewProj, position);
oColor = color;
otexCoord = texCoord;
}
2016-05-28 16:43:00 +00:00
struct output
{
float4 color : COLOR;
};
2016-05-28 16:43:00 +00:00
output main_fragment(float2 texCoord : TEXCOORD0, uniform sampler2D Texture : TEXUNIT0, uniform input IN)\
{
output OUT;
OUT.color = tex2D(Texture, texCoord);
return OUT;
}
);