[Meh] Files I obviously forgot to save. :/

This commit is contained in:
Rtch90 2017-11-22 23:55:04 +00:00
parent 869c4e6a54
commit 8638477a2f
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,6 @@ public:
/* Not valid to SetVelocity on these. If you want them to move, use a DynamicBody. */
vector3d GetPosition(void);
void TransformToModelCoords(const Frame* camFrame);
void TransformCameraTo(void);
void ViewingRotation(void);
void GetRotMatrix(matrix4x4d& m);
virtual void SetFrame(Frame* f);

View File

@ -64,6 +64,7 @@ void WorldView::Draw3D(void) {
float fracH = L3D::GetScrHeight() / (float)L3D::GetScrWidth();
glFrustum(-1, 1, -fracH, fracH, 1.0f, 10000.0f);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
glClearColor(0, 0, 0, 0);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
@ -86,7 +87,7 @@ void WorldView::Draw3D(void) {
glCallList(m_bgstarsDlist);
/* Position light at sol. */
vector3d lpos = Frame::GetFramePosRelativeToOther(Space::GetRootFrame(), &cam_frame);
vector3d lpos = vector3d::Normalize(Frame::GetFramePosRelativeToOther(Space::GetRootFrame(), &cam_frame));
float lightPos[4];
lightPos[0] = lpos.x;
lightPos[1] = lpos.y;