git-svn-id: svn://db.shs.com.ru/libs@629 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -95,7 +95,7 @@ void RendererBase::setUniformCamera(QOpenGLShaderProgram * prog, Camera * cam, b
|
||||
QMatrix4x4 mat_view, mat_proj;
|
||||
if (cam) {
|
||||
if (matrices) {
|
||||
mat_view = cam->viewMatrix() * cam->offsetMatrix();
|
||||
mat_view = cam->fullViewMatrix();
|
||||
mat_proj = cam->projectionMatrix(w / h);
|
||||
}
|
||||
prog->setUniformValue("z_near", cam->depthStart());
|
||||
|
||||
Reference in New Issue
Block a user