Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Pollind <mpollind@gmail.com>
  • Loading branch information
pollend committed Nov 7, 2023
1 parent 0320764 commit bc9feb4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
15 changes: 0 additions & 15 deletions HPL2/resource/solid_z.vert.fsl
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,11 @@
STRUCT(VSInput)
{
DATA(float3, Position, POSITION);
// DATA(float2, TexCoord, TEXCOORD0);
// DATA(float3, Normal, NORMAL);
// DATA(float3, Tangent, TANGENT);
};

STRUCT(VSOutput)
{
DATA(float4, Position, SV_Position);
// DATA(float3, pos, POSITION);
// DATA(float2, uv, TEXCOORD0);
// DATA(float3, normal, NORMAL);
// DATA(float3, tangent, TANGENT);
// DATA(float3, bitangent, BITANGENT);
};

VSOutput VS_MAIN(VSInput In)
Expand All @@ -28,14 +20,7 @@ VSOutput VS_MAIN(VSInput In)
float4x4 modelView = mul(Get(viewMat), Get(uniformObjectBuffer)[Get(objectId)].modelMat);
float4x4 modelViewPrj = mul(Get(projMat), modelView);

// Out.uv = mul(Get(uniformObjectBuffer)[Get(objectId)].uvMat, float4(In.TexCoord, 0, 1.0)).xy;
Out.Position = mul(modelViewPrj , float4(In.Position.xyz, 1.0));
// Out.pos = mul(modelView, float4(In.Position.xyz, 1.0)).xyz;

// float3x3 normalMat = ToNormalMat(Get(uniformObjectBuffer)[Get(objectId)].invModelMat, Get(invViewMat));
// Out.normal = normalize(mul(normalMat, In.Normal.xyz));
// Out.tangent = normalize(mul(normalMat, In.Tangent.xyz));
// Out.bitangent = normalize(mul(normalMat, cross(In.Tangent.xyz, In.Normal.xyz)));

RETURN(Out);
}
1 change: 1 addition & 0 deletions HPL2/resource/solid_z_shadow.vert.fsl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ STRUCT(VSOutput)
{
DATA(float4, Position, SV_Position);
DATA(float3, pos, POSITION);
DATA(float2, uv, TEXCOORD0);
};

VSOutput VS_MAIN(VSInput In)
Expand Down

0 comments on commit bc9feb4

Please sign in to comment.