diff options
| author | GoldenThumbs <[email protected]> | 2020-05-11 04:41:21 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-05-11 11:41:21 +0200 |
| commit | 763aa5b8a2cb2c43038e7672571d8a124a2c75bf (patch) | |
| tree | cfe300ceaf4964be289a2a4ca440525a4bb4cf1c /src | |
| parent | 4e3ab8f27d73815158f66a4fd38657cc75bd6be6 (diff) | |
| download | raylib-763aa5b8a2cb2c43038e7672571d8a124a2c75bf.tar.gz raylib-763aa5b8a2cb2c43038e7672571d8a124a2c75bf.zip | |
Fixed Generated Normals for GenMeshCubicmap (#1244)
Just flipped the signs of `n5` and `n6` at lines `2021` and `2022`.
Diffstat (limited to 'src')
| -rw-r--r-- | src/models.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/models.c b/src/models.c index 482c647b..12c240ad 100644 --- a/src/models.c +++ b/src/models.c @@ -2018,8 +2018,8 @@ Mesh GenMeshCubicmap(Image cubicmap, Vector3 cubeSize) Vector3 n2 = { -1.0f, 0.0f, 0.0f }; Vector3 n3 = { 0.0f, 1.0f, 0.0f }; Vector3 n4 = { 0.0f, -1.0f, 0.0f }; - Vector3 n5 = { 0.0f, 0.0f, 1.0f }; - Vector3 n6 = { 0.0f, 0.0f, -1.0f }; + Vector3 n5 = { 0.0f, 0.0f, -1.0f }; + Vector3 n6 = { 0.0f, 0.0f, 1.0f }; // NOTE: We use texture rectangles to define different textures for top-bottom-front-back-right-left (6) typedef struct RectangleF { |
