Skip to content

Commit ff9bbdd

Browse files
committed
fix: camera proj transform issue
1 parent 6c3f947 commit ff9bbdd

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ the API is complete. It just means we won't break what currently exists.
8383
* ECS v2.0.0 (pl_ecs_ext.h)
8484
* DDS v2.0.0 (pl_dds_ext.h)
8585
* Resource v1.5.0 (pl_resource_ext.h)
86-
* Camera v1.0.2 (pl_camera_ext.h)
86+
* Camera v1.0.3 (pl_camera_ext.h)
8787

8888
## Nearly Stable APIs
8989

extensions/pl_camera_ext.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,13 +275,13 @@ pl_camera_update(plCamera* ptCamera)
275275
}
276276
}
277277

278-
ptCamera->tInvProjMat = pl_mat4t_invert(&ptCamera->tProjMat);
278+
ptCamera->tInvProjMat = pl_mat4_invert(&ptCamera->tProjMat);
279279
}
280280

281281
if(ptCamera->eDirtyFlags != PL_CAMERA_DIRTY_FLAGS_NONE)
282282
{
283283
ptCamera->tViewProjMat = pl_mul_mat4(&ptCamera->tProjMat, &ptCamera->tViewMat);
284-
ptCamera->tInvViewProjMat = pl_mat4t_invert(&ptCamera->tViewProjMat);
284+
ptCamera->tInvViewProjMat = pl_mat4_invert(&ptCamera->tViewProjMat);
285285
}
286286

287287
ptCamera->eDirtyFlags = PL_CAMERA_DIRTY_FLAGS_NONE;

extensions/pl_camera_ext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ extern "C" {
4545
// [SECTION] apis
4646
//-----------------------------------------------------------------------------
4747

48-
#define plCameraI_version {1, 0, 2}
48+
#define plCameraI_version {1, 0, 3}
4949
#define plCameraEcsI_version {0, 1, 0}
5050

5151
//-----------------------------------------------------------------------------

0 commit comments

Comments
 (0)