Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MythRenderOpenGL: Greatly simplify drawing rounded rects
- convert the shaders to use signed distance functions (https:// www.iquilezles.org/www/articles/distfunctions2d/distfunctions2d.htm) - shader speed is probably on a par with the old implementation but the actual rendering is simplified to 2 draw calls and 2 shaders, which should improve performance - subtle rendering artifacts are fixed (that resulted from compositing the rectangle from different parts) and the overall result is a little smoother than the old version
- Loading branch information
1 parent
53aa869
commit 422c4ce
Showing
3 changed files
with
74 additions
and
241 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters