Open jwalt opened 6 years ago
Could you provide a PR for the second point?
Thanks!
I'd rather put that extra line inside the #ifdef GL_ES
, since you say that the disabled fwidth
is only a problem in EGL/GLESv2
. Maybe you could check if this still works?
fragment =
#ifdef GL_ES
#extension GL_OES_standard_derivatives : enable
#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
#else
precision mediump float;
#endif // GL_FRAGMENT_PRECISION_HIGH
#endif // GL_ES
@Ghostkeeper , yes that works. My PR contains that version.
Hi!
Using ARM Mali drivers, Cura's gid.shader does not compile. There are two issues with it.
fwidth
is missing. The driver does supportfwidth
, it just isn't available by default in EGL/GLESv2 and must be explicitly requestedA shader preamble like this works perfectly: