Reflection
[opengl.git] / skyboxvert.glsl
index f1ba7297fabacfa08103d54208b0183708f44f99..4946c73ec28d87c76d3c4eda6e732be9bf2c21df 100644 (file)
@@ -8,5 +8,6 @@ uniform mat4 view;
 
 void main() {
        texCoords = pos;
-       gl_Position = projection * view * vec4(pos, 1);
+       vec4 fragPos = projection * view * vec4(pos, 1);
+       gl_Position = fragPos.xyww;
 }