mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 14:37:46 +02:00
Update glowLine.slv
This commit is contained in:
parent
968ffe7ec3
commit
3a4ec2cc27
1 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ void main(void) {
|
||||||
|
|
||||||
// Add or subtract the orthogonal vector based on a different vertex ID
|
// Add or subtract the orthogonal vector based on a different vertex ID
|
||||||
// calculation
|
// calculation
|
||||||
distanceFromCenter = mix(1.0, -1.0, float(gl_VertexID < 2));
|
distanceFromCenter = 1.0 - 2.0 * float(gl_VertexID < 2);
|
||||||
eye.xyz += distanceFromCenter * orthogonal;
|
eye.xyz += distanceFromCenter * orthogonal;
|
||||||
|
|
||||||
// Finally, put the eyespace vertex into clip space
|
// Finally, put the eyespace vertex into clip space
|
||||||
|
|
Loading…
Reference in a new issue