test / samples /wp8 /OcvRotatingCube /PhoneXamlDirect3DApp1 /PhoneXamlDirect3DApp1Comp /SimplePixelShader.hlsl
Download samples/wp8/OcvRotatingCube/PhoneXamlDirect3DApp1/PhoneXamlDirect3DApp1Comp/SimplePixelShader.hlsl from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 634 Bytes
-
https://huggingface.co/tgollogly/test/resolve/main/samples/wp8/OcvRotatingCube/PhoneXamlDirect3DApp1/PhoneXamlDirect3DApp1Comp/SimplePixelShader.hlsl
- Command line
-
hf download hf://tgollogly/test/samples/wp8/OcvRotatingCube/PhoneXamlDirect3DApp1/PhoneXamlDirect3DApp1Comp/SimplePixelShader.hlsl
-
curl -L -o SimplePixelShader.hlsl https://huggingface.co/tgollogly/test/resolve/main/samples/wp8/OcvRotatingCube/PhoneXamlDirect3DApp1/PhoneXamlDirect3DApp1Comp/SimplePixelShader.hlsl
634 Bytes
| 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; | |
| } | |