mirror of
https://github.com/leozide/leocad
synced 2024-11-17 07:47:55 +01:00
Keep shader compatible with GLSL 110.
This commit is contained in:
parent
9db8a0112a
commit
61cf1dcd20
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ void main()
|
|||
float Cross1 = Line.x * Cond1.y - Line.y * Cond1.x;
|
||||
float Cross2 = Line.x * Cond2.y - Line.y * Cond2.x;
|
||||
|
||||
if (sign(Cross1) == sign(Cross2))
|
||||
if (Cross1 * Cross2 >= 0.0)
|
||||
gl_Position = Position;
|
||||
else
|
||||
gl_Position = vec4(2.0, 2.0, 2.0, 1.0);
|
||||
|
|
Loading…
Reference in a new issue