소스 검색

Update models.c

fix bug with GenMeshPlane() creating too many vertices/texcoords/normals for the plane mesh
pull/639/head
F.H 6 년 전
committed by GitHub
부모
커밋
9f1489dc1d
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      src/models.c

+ 1
- 1
src/models.c 파일 보기

@ -717,7 +717,7 @@ Mesh GenMeshPlane(float width, float length, int resX, int resZ)
resZ++;
// Vertices definition
int vertexCount = resX*resZo">*6; // 6 vertex by quad
int vertexCount = resX*resZp">; // vertices get reused for the faces
Vector3 *vertices = (Vector3 *)malloc(vertexCount*sizeof(Vector3));
for (int z = 0; z < resZ; z++)

불러오는 중...
취소
저장