-
-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework line shaders for WGLMakie compatability (#3558)
* prototyping * fix joint with non-uniform linewidths * fix transform * add patterns * fix pattern sampling * fix truncated join cutoff + some cleanup * improve pattern overwrite threshhold * reorganize code * cleanup * add function for line vec -> line normal * don't try to cleanup joints if linewidth difference is critical * rename some variables * cleanup comments, restructure linewidth sdf generation * minor cleanup + notes * fix orientation problems with truncated joints * minor performance tweaks + cleanup * handle line joints in fragment shader & ditch variable linewidths * improve truncation overlap/gap * improve pattern adjustments for truncated joints * cleanup * reorganize code to reduce memory usage * mostly fix gap in sharp joints * explain pattern overwrite a bit more * use new fragment shader for linesegments * disable debug rendering * fix incorrect line placement * adjust line segments to pattern * use const over define & fix dots * tweak debug rendering * make truncation overlap a bit nicer * minor cleanup * fix linestyle in linesegments * skip rendering at 0 linewidth * add slight bias to avoid missing pixels * differentiate different segments in debug render * make color interpolation continuous at joint * fix dense line color artifacts * remove unused * allocate space for joints * use sdf for AA + debug render * add miter joints * handle colors * some cleanup + linesegments prep * fix some errors [skip ci] * add patterns * clean up linesegments * add normal rendering mode * minor cleanup * experiment with geometry adjustments * use rounding to solve joint over/underdraw * WebGL doesn't like scaling * smooth out inner edge of truncated join * remove derivative to reduce float accuracy issues * improve thin lines * fix lastlen error * match buffer sizes to number of drawn segments * avoid dissipation of lines at high point densities * calculate uv from quad_sdf1 * reduce number of interleaved buffers * fix disappearing grid lines * fix missing preprocessors * fix pattern artifacts in dense line sections * cleanup some variables * allow patterns to adjust to linewidth * fix AA at line end * fix nan handling * discard fully transparent pixels * fix patterns with nan, reset pattern on nan * fix size issues * extrude lines slightly to cleanly close them * fix pixel skipping? * cleanup patterns * remove linewidth from pattern based line adjustments * consider AA in shape factor * reset shape_factor if pattern changes segment shape * minor cleanup * apply changes to WGLMakie + cleanup * cleanup pattern overwrite * use the same AA_RADIUS in fragment shader * fix linelen transform * disable debug * fix line start/end AA * fix px_per_unit? * fix px_per_unit? * reduce line start/end extrusion * simplify extrusion and shape_factor * summarize breaking changes * move miter joint test * update docstring * minor cleanup * enable more tests * move gappy & friends to Makie * note change to linestyle scaling * cleanup * fix line start/end AA * remove global var * disable GeoMakie tests for now * improve transparency for WGLMakie * fix problems with 180° change in line direction * fix directionality * interpolate colormap in fragment shader * remove util.vert from line/segments --------- Co-authored-by: SimonDanisch <[email protected]>
- Loading branch information
1 parent
d0b423c
commit 3f885c3
Showing
23 changed files
with
2,414 additions
and
1,416 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
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
Oops, something went wrong.