15 lines
232 B
HLSL
15 lines
232 B
HLSL
#include "common.hlsli"
|
|
|
|
struct v2p
|
|
{
|
|
float2 tc0 : TEXCOORD0;
|
|
float4 c0 : COLOR0;
|
|
};
|
|
|
|
float4 main(v2p I) : COLOR
|
|
{
|
|
float4 r = tex2D(s_base, I.tc0);
|
|
r.rgb = I.c0.rgb;
|
|
r.a *= I.c0.a;
|
|
return r;
|
|
}
|