Better near-z value

This commit is contained in:
Jack Andersen 2016-07-31 13:36:53 -10:00
parent 89d4cc78d0
commit d737ed7b34
2 changed files with 3 additions and 3 deletions

View File

@ -86,7 +86,7 @@ void ViewManager::ParticleView::draw(boo::IGraphicsCommandQueue *gfxQ)
CGraphics::SetViewPointMatrix(zeus::lookAt(zeus::CVector3f{0.f, -10.f, 4.f}, {0.f, 0.f, 0.f}));
boo::SWindowRect windowRect = m_vm.m_mainWindow->getWindowFrame();
float aspect = windowRect.size[0] / float(windowRect.size[1]);
CGraphics::SetPerspective(55.0, aspect, 0.001f, 1000.f);
CGraphics::SetPerspective(55.0, aspect, 0.1f, 1000.f);
std::vector<CLight> lights = {CLight::BuildLocalAmbient({}, {0.5f, 0.5f, 0.5f, 1.f}),
CLight::BuildCustom({0.f, -20.f, 10.f}, {0.f, 1.f, 0.f},
@ -110,7 +110,7 @@ void ViewManager::ParticleView::draw(boo::IGraphicsCommandQueue *gfxQ)
CGraphics::SetViewPointMatrix(zeus::CTransform::Identity() + zeus::CVector3f(0.f, -10.f, 0.f));
boo::SWindowRect windowRect = m_vm.m_mainWindow->getWindowFrame();
float aspect = windowRect.size[0] / float(windowRect.size[1]);
CGraphics::SetPerspective(55.0, aspect, 0.001f, 1000.f);
CGraphics::SetPerspective(55.0, aspect, 0.1f, 1000.f);
//gfxQ->clearTarget(false, true);
m_vm.m_partGen->Render();

2
hecl

@ -1 +1 @@
Subproject commit cb3e8d09fe2def4bf594d5d4f8822440dddb3ce9
Subproject commit cc98390bdb08dd2a83c6b2a6b7c92dc6c4e20fac