From 1e8de01d3704c584e43e1b84947487c2aaddb7d7 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 4 Feb 2018 21:57:24 -0500 Subject: Made some fixes to rendering I guess This is pretty old so I'm not exactly sure what it does but without it, the monitor gets rendered upside down. --- shaders/final.vertex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shaders/final.vertex') diff --git a/shaders/final.vertex b/shaders/final.vertex index ed6079f..adf266d 100644 --- a/shaders/final.vertex +++ b/shaders/final.vertex @@ -23,6 +23,6 @@ void main() mat3 invWorldRot = transpose(mat3(worldMat[0].xyz, worldMat[1].xyz, worldMat[2].xyz)); vec3 worldPos = (worldMat * vec4(vertexPosition_modelspace,1)).xyz; - camDirIn = invWorldRot * (vec3(2,0,0) - worldPos); + camDirIn = invWorldRot * (vec3(3.75,0,0) - worldPos); lightDirIn = invWorldRot * (Tuning_LightPos - worldPos); } -- cgit 1.4.1