• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Texture2D shaderTexture;
2SamplerState SampleType;
3
4//////////////
5// TYPEDEFS //
6//////////////
7struct PixelInputType
8{
9    float4 position : SV_POSITION;
10    float2 tex : TEXCOORD0;
11};
12
13////////////////////////////////////////////////////////////////////////////////
14// Pixel Shader
15////////////////////////////////////////////////////////////////////////////////
16float4 main(PixelInputType input) : SV_TARGET
17{
18    float4 textureColor;
19
20
21    // Sample the pixel color from the texture using the sampler at this texture coordinate location.
22    textureColor = shaderTexture.Sample(SampleType, input.tex);
23
24    return textureColor;
25}
26