mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
634 B
25 lines
634 B
Texture2D shaderTexture; |
|
SamplerState SampleType; |
|
|
|
////////////// |
|
// TYPEDEFS // |
|
////////////// |
|
struct PixelInputType |
|
{ |
|
float4 position : SV_POSITION; |
|
float2 tex : TEXCOORD0; |
|
}; |
|
|
|
//////////////////////////////////////////////////////////////////////////////// |
|
// Pixel Shader |
|
//////////////////////////////////////////////////////////////////////////////// |
|
float4 main(PixelInputType input) : SV_TARGET |
|
{ |
|
float4 textureColor; |
|
|
|
|
|
// Sample the pixel color from the texture using the sampler at this texture coordinate location. |
|
textureColor = shaderTexture.Sample(SampleType, input.tex); |
|
|
|
return textureColor; |
|
}
|
|
|