Skip to content

Commit

Permalink
Fix hello triangle VS input
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnavMehta3000 committed Aug 24, 2024
1 parent 610b47f commit 07cb55a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Samples/SpinningCube/Assets/DirectX/SpinningCubeVS.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ cbuffer FrameData : register(b0)

struct VS_INPUT
{
float3 Position : POSITION;
float4 Position : POSITION;
float3 Color : COLOR0;
};

Expand All @@ -21,7 +21,7 @@ VS_OUTPUT main(VS_INPUT input)
{
VS_OUTPUT output = (VS_OUTPUT)0;

output.Position = float4(input.Position, 1.0);
output.Position = input.Position;
output.Position = mul(output.Position, WorldMatrix);
output.Position = mul(output.Position, ViewMatrix);
output.Position = mul(output.Position, ProjMatrix);
Expand Down

0 comments on commit 07cb55a

Please sign in to comment.