mirror of
https://github.com/overte-org/overte.git
synced 2025-04-10 17:22:25 +02:00
Update glowLine.slv
This commit is contained in:
parent
968ffe7ec3
commit
3a4ec2cc27
1 changed files with 2 additions and 2 deletions
|
@ -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)$>
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue