added keybinds
This commit is contained in:
@@ -103,6 +103,7 @@ void CFunnyMeshInstance::Frame()
|
||||
v[2] = m_vScale.z;
|
||||
glm_scale_make(m, v);
|
||||
glm_mat4_mul(m_data.m_matTranslation, m, m_data.m_matTranslation);
|
||||
glm_mat4_inv(m_data.m_matTranslation, m_data.m_matTranslation);
|
||||
m_data.m_uAlbedo = 1;
|
||||
}
|
||||
|
||||
@@ -217,8 +218,12 @@ void CFunnyWorldRenderer::Frame( float fDelta )
|
||||
uint32_t uWidth = g_pMainWindow->GetRenderWidth();
|
||||
uint32_t uHeight = g_pMainWindow->GetRenderHeight();
|
||||
mat4 matCamera;
|
||||
mat4 matCamera2;
|
||||
glm_mat4_identity(matCamera);
|
||||
glm_mat4_identity(matCamera2);
|
||||
glm_translate(matCamera2, m_vPos);
|
||||
glm_perspective(glm_rad(60), uWidth/(float)uHeight, 0.01, 10000, matCamera);
|
||||
glm_translate(matCamera, m_vPos);
|
||||
glm_mul(matCamera, matCamera2, matCamera);
|
||||
/*
|
||||
V_printf("%f %f %f %f\n", matCamera[0][0], matCamera[0][1], matCamera[0][2], matCamera[0][3]);
|
||||
V_printf("%f %f %f %f\n", matCamera[1][0], matCamera[1][1], matCamera[1][2], matCamera[1][3]);
|
||||
|
||||
Reference in New Issue
Block a user