aboutsummaryrefslogtreecommitdiff
path: root/tools/ArtistTools/project/UI/DXUTShared.fx
diff options
context:
space:
mode:
authorBryan Galdrikian <[email protected]>2017-08-23 11:24:32 -0700
committerBryan Galdrikian <[email protected]>2017-08-23 11:24:32 -0700
commitf1e539cadfb085cedc32f9773cfb9d14bfcdf138 (patch)
tree7ca74e06a4386dd22fd850a8417a31a85d282a30 /tools/ArtistTools/project/UI/DXUTShared.fx
parentUpdated to CL 22661993: (diff)
downloadblast-f1e539cadfb085cedc32f9773cfb9d14bfcdf138.tar.xz
blast-f1e539cadfb085cedc32f9773cfb9d14bfcdf138.zip
Removing ArtistTools and CurveEditor projects
Diffstat (limited to 'tools/ArtistTools/project/UI/DXUTShared.fx')
-rw-r--r--tools/ArtistTools/project/UI/DXUTShared.fx69
1 files changed, 0 insertions, 69 deletions
diff --git a/tools/ArtistTools/project/UI/DXUTShared.fx b/tools/ArtistTools/project/UI/DXUTShared.fx
deleted file mode 100644
index f6d590b..0000000
--- a/tools/ArtistTools/project/UI/DXUTShared.fx
+++ /dev/null
@@ -1,69 +0,0 @@
-//--------------------------------------------------------------------------------------
-// File: DXUTShared.fx
-//
-//
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-//--------------------------------------------------------------------------------------
-
-
-//--------------------------------------------------------------------------------------
-// Global variables
-//--------------------------------------------------------------------------------------
-float4 g_MaterialDiffuseColor; // Material's diffuse color
-float3 g_LightDir; // Light's direction in world space
-float4x4 g_mWorld; // World matrix for object
-float4x4 g_mWorldViewProjection; // World * View * Projection matrix
-
-
-
-//--------------------------------------------------------------------------------------
-// Vertex shader output structure
-//--------------------------------------------------------------------------------------
-struct VS_OUTPUT
-{
- float4 Position : POSITION; // vertex position
- float4 Diffuse : COLOR0; // vertex diffuse color
-};
-
-
-//--------------------------------------------------------------------------------------
-// This shader computes standard transform and lighting
-//--------------------------------------------------------------------------------------
-VS_OUTPUT RenderWith1LightNoTextureVS( float4 vPos : POSITION,
- float3 vNormal : NORMAL )
-{
- VS_OUTPUT Output;
-
- // Transform the position from object space to homogeneous projection space
- Output.Position = mul(vPos, g_mWorldViewProjection);
-
- // Transform the normal from object space to world space
- float3 vNormalWorldSpace;
- vNormalWorldSpace = normalize(mul(vNormal, (float3x3)g_mWorld)); // normal (world space)
-
- // Compute simple directional lighting equation
- Output.Diffuse.rgb = g_MaterialDiffuseColor * max(0,dot(vNormalWorldSpace, g_LightDir));
- Output.Diffuse.a = 1.0f;
-
- return Output;
-}
-
-
-//--------------------------------------------------------------------------------------
-float4 RenderWith1LightNoTexturePS( float4 Diffuse : COLOR0 ) : COLOR0
-{
- return Diffuse;
-}
-
-
-//--------------------------------------------------------------------------------------
-technique RenderWith1LightNoTexture
-{
- pass P0
- {
- VertexShader = compile vs_1_1 RenderWith1LightNoTextureVS();
- PixelShader = compile ps_1_1 RenderWith1LightNoTexturePS();
- }
-}
-