소스 검색

moved update out of draw area (#4413)

pull/4415/head
Anthony Carbajal 11 달 전
committed by GitHub
부모
커밋
fe66bfb785
No known key found for this signature in database GPG 키 ID: B5690EEEBB952194
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      examples/models/models_gpu_skinning.c

+ 2
- 2
examples/models/models_gpu_skinning.c 파일 보기

@ -81,6 +81,8 @@ int main(void)
// Update model animation
ModelAnimation anim = modelAnimations[animIndex];
animCurrentFrame = (animCurrentFrame + 1)%anim.frameCount;
characterModel.transform = MatrixTranslate(position.x, position.y, position.z);
UpdateModelAnimationBoneMatrices(characterModel, anim, animCurrentFrame);
//----------------------------------------------------------------------------------
// Draw
@ -92,8 +94,6 @@ int main(void)
BeginMode3D(camera);
// Draw character
characterModel.transform = MatrixTranslate(position.x, position.y, position.z);
UpdateModelAnimationBoneMatrices(characterModel, anim, animCurrentFrame);
DrawMesh(characterModel.meshes[0], characterModel.materials[1], characterModel.transform);
DrawGrid(10, 1.0f);

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