commit 3c3179373811856f150120886dce4f004aaf4b10
parent 390320604b44f7e078d6839e9946d9a8798f65d3
Author: Brian Swetland <swetland@frotz.net>
Date: Fri, 1 Feb 2013 02:03:25 -0800
hello: toss old fx source
Diffstat:
1 file changed, 0 insertions(+), 40 deletions(-)
diff --git a/hello/hello.fx b/hello/hello.fx
@@ -1,39 +0,0 @@
-
-matrix MVP;
-
-Texture2D Texture0;
-
-SamplerState samLinear {
- Filter = MIN_MAG_MIP_LINEAR;
- AddressU = Wrap;
- AddressV = Wrap;
-};
-
-struct VS_OUTPUT {
- float4 Pos : SV_POSITION;
- float2 TexCoord : TEXCOORD;
-};
-
-VS_OUTPUT VS(
- float4 Pos : POSITION,
- float4 Normal : NORMAL,
- float2 TexCoord : TEXCOORD) {
- VS_OUTPUT output = (VS_OUTPUT) 0;
- output.Pos = mul(Pos,MVP); // DX
-// output.Pos = mul(MVP, Pos); // GL
- output.TexCoord = TexCoord;
- return output;
-}
-
-float4 PS(VS_OUTPUT input) : SV_Target {
-// return float4(1.0,0.0,0.0,1.0);
- return Texture0.Sample(samLinear, input.TexCoord);
-}
-
-technique10 Render {
- pass P0 {
- SetVertexShader(CompileShader(vs_4_0, VS()));
- SetGeometryShader(NULL);
- SetPixelShader(CompileShader(ps_4_0, PS()));
- }
-}
-\ No newline at end of file