-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increase texture resolution for line gradient for step interpolant - Step interpolant now uses gl.NEAREST for texture sampler: This allows for hard transition between different line sections when using step interpolation. Other use cases are covered by using a smooth interpolation type along with gl.LINEAR texture sampler. - Step interpolant now uses an increased texture resolution color ramp based on the total line length tile coverage to limitate the potential precision issues for high coverage. We are still limitated by the precision of v_lineprogress currently encoded in a 15bits floating point value. Reuse color ramp memory placement when already available Only calculate max distance if clipstart and clipend are defined Increase precision of line progress when needed Tile line gradient textures
- Loading branch information
1 parent
9489d76
commit 3fc990e
Showing
21 changed files
with
663 additions
and
80 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// @flow | ||
import {createLayout} from '../../util/struct_array'; | ||
|
||
const lineLayoutAttributesExt = createLayout([ | ||
{name: 'a_line_progress', components: 1, type: 'Float32'}, | ||
{name: 'a_line_clip', components: 1, type: 'Float32'}, | ||
{name: 'a_split_index', components: 1, type: 'Uint8'}, | ||
], 4); | ||
|
||
export default lineLayoutAttributesExt; | ||
export const {members, size, alignment} = lineLayoutAttributesExt; |
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.