Load Texture Rework Needed

This commit is contained in:
2024-09-27 17:06:02 +02:00
parent 6a8172ab1f
commit cabf9b39d8
8 changed files with 122 additions and 16 deletions

View File

@@ -33,7 +33,7 @@ PixelInputType CelShadingVertexShader(VertexInputType input)
output.position = mul(output.position, projectionMatrix);
// Pass the normal to the pixel shader
output.normal = mul((float3x3)worldMatrix, input.normal);
output.normal = normalize(mul((float3x3) worldMatrix, input.normal));
// Pass the world position to the pixel shader
output.worldPos = worldPosition.xyz;