Update glowLine.slv

This commit is contained in:
Sam Gondelman 2018-11-27 10:53:25 -08:00 committed by GitHub
parent 968ffe7ec3
commit 3a4ec2cc27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,9 +53,9 @@ void main(void) {
// Add or subtract the orthogonal vector based on a different vertex ID
// calculation
distanceFromCenter = mix(1.0, -1.0, float(gl_VertexID < 2));
distanceFromCenter = 1.0 - 2.0 * float(gl_VertexID < 2);
eye.xyz += distanceFromCenter * orthogonal;
// Finally, put the eyespace vertex into clip space
<$transformEyeToClipPos(cam, eye, gl_Position)$>
}
}