Location shaders: some Mali GPU don't like ternary operators #321
This commit is contained in:
parent
223eb120fa
commit
d5ebf43e3d
@ -40,7 +40,9 @@ void main() {
|
|||||||
// - subtract inner from outer to create the outline
|
// - subtract inner from outer to create the outline
|
||||||
// - multiply by viewshed
|
// - multiply by viewshed
|
||||||
// - add center point
|
// - add center point
|
||||||
a = max(d, (a - (b + c)) + c) + (u_mode == 0 ? c : 0);
|
a = max(d, (a - (b + c)) + c);
|
||||||
|
if (u_mode == 0)
|
||||||
|
a += c;
|
||||||
gl_FragColor = u_color * a;
|
gl_FragColor = u_color * a;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user