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
+2 -2
View File
@@ -41,13 +41,13 @@ Engine::~Engine() {}
void Engine::setDefaultScreen()
{
screen.projectionScale = 4096.0F;
screen.nearPlaneDist = 2.0F;
screen.farPlaneDist = 2000.0F;
screen.fov = 60.0F;
screen.aspectRatio = 4.0F / 3.0F;
screen.width = 640.0F;
screen.height = 480.0F;
screen.aspectRatio = screen.width / screen.height;
screen.projectionScale = 4096.0F; // PS2 have 4k drawing area
}
void Engine::init(Game *t_game, u32 t_gifPacketSize)