mirror of
https://github.com/ConjureETS/LOG750-LAB2.git
synced 2026-03-24 03:21:19 +00:00
fixing skybox position/scaling
This commit is contained in:
parent
4acb10acf0
commit
3c7ad6d8da
@ -112,7 +112,7 @@ void Viewer::drawSkybox()
|
|||||||
camera()->getModelViewMatrix(modelViewMatrix);
|
camera()->getModelViewMatrix(modelViewMatrix);
|
||||||
|
|
||||||
// Increase size of skybox
|
// Increase size of skybox
|
||||||
|
modelViewMatrix = QMatrix4x4(modelViewMatrix.normalMatrix());
|
||||||
modelViewMatrix.scale(100);
|
modelViewMatrix.scale(100);
|
||||||
|
|
||||||
float colorMult = 0.2 + std::fabs(0.8 * cos(std::fmod(angle_mult * frame + 300, 360) / 360 * M_PI));
|
float colorMult = 0.2 + std::fabs(0.8 * cos(std::fmod(angle_mult * frame + 300, 360) / 360 * M_PI));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user