git-svn-id: svn://db.shs.com.ru/libs@594 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2019-09-18 20:03:37 +00:00
parent 3766876655
commit b95ab45161

View File

@@ -70,10 +70,10 @@ void RendererSimple::renderScene() {
glDepthMask(GL_FALSE);
glDepthFunc(GL_EQUAL);
glClearFramebuffer(Qt::black, false);
view.camera()->apply(view.aspect);
}
//view.camera().apply(view.aspect);
rp.cam_offset_matrix = view.camera()->offsetMatrix();
rp.prepare();
//rp.cam_offset_matrix = view.camera()->offsetMatrix();
//rp.prepare();
setupLights(l, 8);
renderObjects(GLObjectBase::Solid, l, nullptr, true, view.isLightEnabled(), view.isFogEnabled());
renderObjects(GLObjectBase::Transparent, l, nullptr, true, true, view.isFogEnabled());