From c9a4e3581699ce3c1a03837be0a9c9492560a706 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Sun, 6 Dec 2020 19:45:03 -0800 Subject: [PATCH] fix meshsprite normal --- Geometry/MeshSprite.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Geometry/MeshSprite.cs b/Geometry/MeshSprite.cs index e53d5dc..ac50ab7 100644 --- a/Geometry/MeshSprite.cs +++ b/Geometry/MeshSprite.cs @@ -91,19 +91,19 @@ namespace Kav VertexPositionNormalTexture[] result = new VertexPositionNormalTexture[4]; result[0].Position = new Vector3(-texture.Width / 2, texture.Height / 2, 0) / PixelScale; - result[0].Normal = new Vector3(0, 0, -1); + result[0].Normal = new Vector3(0, 0, 1); result[0].TextureCoordinate = new Vector2(0, 0); result[1].Position = new Vector3(texture.Width / 2, texture.Height / 2, 0) / PixelScale; - result[1].Normal = new Vector3(0, 0, -1); + result[1].Normal = new Vector3(0, 0, 1); result[1].TextureCoordinate = new Vector2(1, 0); result[2].Position = new Vector3(-texture.Width / 2, -texture.Height / 2, 0) / PixelScale; - result[2].Normal = new Vector3(0, 0, -1); + result[2].Normal = new Vector3(0, 0, 1); result[2].TextureCoordinate = new Vector2(0, 1); result[3].Position = new Vector3(texture.Width / 2, -texture.Height / 2, 0) / PixelScale; - result[3].Normal = new Vector3(0, 0, -1); + result[3].Normal = new Vector3(0, 0, 1); result[3].TextureCoordinate = new Vector2(1, 1); return result;