Trivial cleanup of removal of translation component from transformation matrix when drawing cubemaps.
This commit is contained in:
@@ -266,14 +266,8 @@ void LLCubeMap::setMatrix(S32 stage)
|
|||||||
gGL.getTexUnit(stage)->activate();
|
gGL.getTexUnit(stage)->activate();
|
||||||
}
|
}
|
||||||
|
|
||||||
LLVector3 x(gGLModelView.getRow<0>().getF32ptr());
|
LLMatrix4a trans(gGLModelView);
|
||||||
LLVector3 y(gGLModelView.getRow<1>().getF32ptr());
|
trans.setRow<3>(LLVector4a::getZero());
|
||||||
LLVector3 z(gGLModelView.getRow<2>().getF32ptr());
|
|
||||||
|
|
||||||
LLMatrix3 mat3;
|
|
||||||
mat3.setRows(x,y,z);
|
|
||||||
LLMatrix4a trans;
|
|
||||||
trans.loadu(mat3);
|
|
||||||
trans.transpose();
|
trans.transpose();
|
||||||
|
|
||||||
gGL.matrixMode(LLRender::MM_TEXTURE);
|
gGL.matrixMode(LLRender::MM_TEXTURE);
|
||||||
|
|||||||
Reference in New Issue
Block a user