added manual calcs of model-view-proj matrix

This commit is contained in:
h4570
2020-12-24 12:45:09 +01:00
parent 91934df5e8
commit b4fe16dccc
13 changed files with 156 additions and 135 deletions
+12 -4
View File
@@ -22,10 +22,18 @@ struct RenderData
{
LightBulb *bulbs;
u16 bulbsCount;
/** Camera (lookAt) */
Matrix *worldView;
/** Perspective projection */
Matrix *perspective;
/**
* Camera matrix (glLookAt)
* OpenGL name: View
* Sony name: World view
*/
Matrix *view;
/**
* Projection matrix (glPerspective)
* OpenGL name: Projection
* Sony name: View screen
*/
Matrix *projection;
Vector3 *cameraPosition;
Plane *frustumPlanes;
prim_t *prim;