mirror of
https://github.com/libretro/RetroArch
synced 2025-01-18 13:23:40 +00:00
5cad1e4c39
mall 1/2-line ifdefs should be needed
41 lines
637 B
Plaintext
41 lines
637 B
Plaintext
/*
|
|
VERTEX_SHADER
|
|
*/
|
|
void main_vertex
|
|
(
|
|
float2 position : POSITION,
|
|
float2 texCoord : TEXCOORD0,
|
|
uniform float4x4 modelViewProj : register(c0),
|
|
out float4 oPosition : POSITION,
|
|
out float2 otexCoord : TEXCOORD
|
|
)
|
|
{
|
|
oPosition = mul(modelViewProj, float4(position, 0.0, 1.0));
|
|
otexCoord = texCoord;
|
|
}
|
|
|
|
|
|
/*
|
|
FRAGMENT SHADER
|
|
*/
|
|
struct output
|
|
{
|
|
float4 color : COLOR;
|
|
};
|
|
|
|
struct input
|
|
{
|
|
float2 video_size;
|
|
float2 texture_size;
|
|
float2 output_size;
|
|
};
|
|
|
|
|
|
output main_fragment(float2 texCoord : TEXCOORD0, uniform sampler2D decal : register(s0), uniform input IN) : COLOR
|
|
{
|
|
output OUT;
|
|
OUT.color = tex2D(decal, texCoord);
|
|
return OUT;
|
|
}
|
|
|