Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need highp precision for gamma values on mobile devices #4275

Merged
merged 1 commit into from Feb 15, 2017

Conversation

jfirebaugh
Copy link
Contributor

lowp triggers aliasing artifacts at larger font sizes: mapbox/mapbox-gl-native#7599.

lowp triggers aliasing artifacts at larger font sizes: mapbox/mapbox-gl-native#7599.
Copy link
Contributor

@anandthakker anandthakker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (though I should not that I'm not familiar enough w WebGL to have instincts about the practical costs of this precision increase)

jfirebaugh added a commit to mapbox/mapbox-gl-native that referenced this pull request Feb 15, 2017
Need highp precision for gamma values on mobile devices. lowp triggers aliasing artifacts at larger font sizes.

Note that this change is a hand-edit to the generated shader sources, rather than pulling mapbox/mapbox-gl-js#4275 and running the generator script. The reason for that is that the upstream shader now assumes support for DDS properties that gl-native does not yet support. Once that support lands in gl-native, we can regenerate the shader source.
@jfirebaugh jfirebaugh merged commit 10315c0 into master Feb 15, 2017
@jfirebaugh jfirebaugh deleted the sdf-shader-precision branch February 15, 2017 00:29
jfirebaugh added a commit to mapbox/mapbox-gl-native that referenced this pull request Feb 15, 2017
Need highp precision for gamma values on mobile devices. lowp triggers aliasing artifacts at larger font sizes.

Note that this change is a hand-edit to the generated shader sources, rather than pulling mapbox/mapbox-gl-js#4275 and running the generator script. The reason for that is that the upstream shader now assumes support for DDS properties that gl-native does not yet support. Once that support lands in gl-native, we can regenerate the shader source.
jfirebaugh added a commit to mapbox/mapbox-gl-native that referenced this pull request Feb 15, 2017
Need highp precision for gamma values on mobile devices. lowp triggers aliasing artifacts at larger font sizes.

Note that this change is a hand-edit to the generated shader sources, rather than pulling mapbox/mapbox-gl-js#4275 and running the generator script. The reason for that is that the upstream shader now assumes support for DDS properties that gl-native does not yet support. Once that support lands in gl-native, we can regenerate the shader source.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants