mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
Update parabola.slv
This commit is contained in:
parent
3a4ec2cc27
commit
5ee803bf1d
1 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ void main(void) {
|
|||
normal = vec4(normalize(cross(_parabolaData.velocity, _parabolaData.acceleration)), 0);
|
||||
}
|
||||
|
||||
pos += 0.5 * _parabolaData.width * normal * mix(-1.0, 1.0, float(gl_VertexID % 2 == 0));
|
||||
pos += 0.5 * _parabolaData.width * normal * (-1.0 + 2.0 * float(gl_VertexID % 2 == 0));
|
||||
|
||||
<$transformModelToClipPos(cam, obj, pos, gl_Position)$>
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue