瀏覽代碼

Fixed Generated Normals for GenMeshCubicmap (#1244)

Just flipped the signs of `n5` and `n6` at lines `2021` and `2022`.
pull/1246/head
GoldenThumbs 5 年之前
committed by GitHub
父節點
當前提交
763aa5b8a2
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      src/models.c

+ 2
- 2
src/models.c 查看文件

@ -2018,8 +2018,8 @@ Mesh GenMeshCubicmap(Image cubicmap, Vector3 cubeSize)
Vector3 n2 = { -1.0f, 0.0f, 0.0f }; Vector3 n2 = { -1.0f, 0.0f, 0.0f };
Vector3 n3 = { 0.0f, 1.0f, 0.0f }; Vector3 n3 = { 0.0f, 1.0f, 0.0f };
Vector3 n4 = { 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, o">-1.0f };
Vector3 n5 = { 0.0f, 0.0f, o">-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) // NOTE: We use texture rectangles to define different textures for top-bottom-front-back-right-left (6)
typedef struct RectangleF { typedef struct RectangleF {

Loading…
取消
儲存