duplicate scene from polytopia

This commit is contained in:
2020-01-11 22:13:41 -05:00
parent 214f54fe89
commit 437dae0205
5 changed files with 63 additions and 9 deletions

View File

@@ -11,5 +11,5 @@ void main() {
int i = gl_VertexID;
vpos = view * pos;
gl_Position = proj * vec4(vpos.xyz / (1 - vpos.w), 1);
gl_PointSize = 5;
gl_PointSize = 5 * smoothstep(-2, 2, gl_Position.z);
}