Sunshine/assets/shaders/ScenePS.hlsl

14 lines
260 B
HLSL
Raw Normal View History

2021-05-06 10:00:39 +00:00
Texture2D image : register(t0);
SamplerState def_sampler : register(s0);
struct PS_INPUT
{
float4 pos : SV_POSITION;
float2 tex : TEXCOORD;
};
float4 main_ps(PS_INPUT frag_in) : SV_Target
{
2021-05-06 10:36:26 +00:00
return image.Sample(def_sampler, frag_in.tex, 0);
2021-05-06 10:00:39 +00:00
}