Remove the jumpDisk, I don't know how that ever worked!

Also increased resolution of the jumpSphere to kill the jaggies.
master
Andrew Copland 2014-09-23 21:11:37 +01:00
parent 0d6383699b
commit aa1f7d203d
2 changed files with 4 additions and 5 deletions

View File

@ -1068,7 +1068,6 @@ void SectorView::DrawNearSector(const int sx, const int sy, const int sz, const
const matrix4x4f sphTrans = trans * matrix4x4f::Translation(i->GetPosition().x, i->GetPosition().y, i->GetPosition().z);
m_renderer->SetTransform(sphTrans * matrix4x4f::ScaleMatrix(m_playerHyperspaceRange));
m_jumpSphere->Draw(m_renderer);
m_jumpDisk->Draw(m_renderer);
}
}
}
@ -1374,9 +1373,9 @@ void SectorView::Update()
Graphics::MaterialDescriptor matdesc;
matdesc.effect = EFFECT_FRESNEL_SPHERE;
RefCountedPtr<Graphics::Material> fresnelMat(m_renderer->CreateMaterial(matdesc));
m_jumpSphere.reset( new Graphics::Drawables::Sphere3D(m_renderer, fresnelMat, m_jumpSphereState, 3, 1.0f) );
m_jumpDisk.reset( new Graphics::Drawables::Disk(m_renderer, fresnelMat, m_jumpSphereState, 72, 1.0f) );
m_fresnelMat.Reset(m_renderer->CreateMaterial(matdesc));
m_fresnelMat->diffuse = Color::WHITE;
m_jumpSphere.reset( new Graphics::Drawables::Sphere3D(m_renderer, m_fresnelMat, m_jumpSphereState, 4, 1.0f) );
}
UIView::Update();

View File

@ -185,8 +185,8 @@ private:
std::unique_ptr<Graphics::VertexArray> m_lineVerts;
std::unique_ptr<Graphics::VertexArray> m_secLineVerts;
RefCountedPtr<Graphics::Material> m_fresnelMat;
std::unique_ptr<Graphics::Drawables::Sphere3D> m_jumpSphere;
std::unique_ptr<Graphics::Drawables::Disk> m_jumpDisk;
std::unique_ptr<Graphics::VertexArray> m_starVerts;
};