[Meh] Files I obviously forgot to save. :/
This commit is contained in:
parent
a4faed8854
commit
4f4996d44b
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user