20 lines
419 B
HLSL
20 lines
419 B
HLSL
#include "common.hlsli"
|
|
|
|
// Texture2D s_base;
|
|
// sampler smp_base;
|
|
|
|
|
|
// Pixel
|
|
float4 main(p_TL I) : SV_Target
|
|
{
|
|
float4 res = s_base.Sample(smp_base, I.Tex0);
|
|
// res.rgb = lerp( I.Color.rgb, res.rgb, I.Color.a);
|
|
res.rgb = lerp(res.rgb, I.Color.rgb, I.Color.a);
|
|
res.a *= I.Color.a;
|
|
|
|
// clip(res-m_AlphaRef);
|
|
// clip(res-0.5);
|
|
|
|
return res;
|
|
// return float4(1,1,1,1);
|
|
}
|