DD Liu
70fae9665a
Revert "Revert "Revert "Merge pull request #489 from adroitwhiz/touching-white-fixes"""
2020-08-05 19:20:10 -04:00
DD Liu
46274c7908
Merge pull request #649 from adroitwhiz/no-vector-blur
...
Always use SVG mipmaps that match or exceed the skins' screen-space size
2020-08-04 17:17:03 -04:00
DD Liu
b2346252f1
Revert "Revert "Merge pull request #489 from adroitwhiz/touching-white-fixes""
2020-08-04 16:31:10 -04:00
adroitwhiz
0babe1e0cb
Merge pull request #664 from adroitwhiz/alias-istouching
...
Move isTouching logic to updateCPURenderAttributes
2020-07-23 17:04:26 -04:00
adroitwhiz
ffddd7fba6
Merge pull request #667 from adroitwhiz/fix-safari-pen-again
...
Move pen point difference calculation from shader code to JS
2020-07-23 16:42:03 -04:00
adroitwhiz
8b45114a57
Move pen point difference calculation to JS
...
I'm giving up on coding and becoming a farmer. I hate this code so much
2020-07-23 03:15:31 -04:00
adroitwhiz
151e8182b0
Move isTouching logic to updateCPURenderAttributes
2020-07-21 15:40:48 -04:00
adroitwhiz
bc5969f89d
Merge pull request #568 from adroitwhiz/extract-drawable-screen-space
...
Add extractDrawableScreenSpace method
2020-07-21 14:57:23 -04:00
adroitwhiz
116d147faf
Revert "Merge pull request #489 from adroitwhiz/touching-white-fixes"
...
This reverts commit a1ca2eb9240af25808f62286e1272ae759378640, reversing
changes made to fcdcffeec899643fee3a4c5a3bccd668e9a2f0af.
2020-07-16 15:07:16 -04:00
adroitwhiz
56f673972a
Fix @type annotations so JSDoc doesn't complain
2020-07-14 16:36:12 -04:00
adroitwhiz
a1ca2eb924
Merge pull request #489 from adroitwhiz/touching-white-fixes
...
Fix "touching color" for background color
2020-07-14 16:22:18 -04:00
adroitwhiz
1437574261
Comment extractDrawableScreenSpace better
2020-07-09 16:54:47 -04:00
adroitwhiz
a4e5f8e3b9
Re-disable ghost effect
2020-07-09 16:27:23 -04:00
adroitwhiz
d9c854f1fc
Remove setRotationCenter API
2020-06-23 02:29:14 -04:00
adroitwhiz
0d86ec92ed
Don't blur vector skins
2020-06-22 17:33:45 -04:00
adroitwhiz
26988e398f
Clean up SVGSkin
2020-06-22 17:33:45 -04:00
adroitwhiz
19398fa67a
Fix typo: "that half-pixel stil"
2020-06-17 16:09:19 -04:00
adroitwhiz
a2bc5a4974
Fix "drawable's bounds" comments
2020-06-17 16:07:24 -04:00
adroitwhiz
8db14c5094
Clean up background color stuff
2020-06-17 16:01:17 -04:00
adroitwhiz
4fa042cead
Remove unnecessary shader stuff
2020-06-17 14:19:44 -04:00
Ryuurock
ab21dd106e
Reduce unnecessary traversal
2020-06-11 15:54:06 -04:00
adroitwhiz
f09131ea64
Snap _candidatesTouching bounds to integer coords
...
When we construct bounds inside which we should loop over pixels, which
is done in _candidatesBounds, we expect their dimensions+position to be
integers when looping over them. If they aren't, weird things will occur
(e.g. "phantom" touching-color results depending on the precise subpixel
bounds position) that are not very fun to debug.
2020-06-10 17:24:05 -04:00
adroitwhiz
99ff2ba11e
Fix touching color check for background color
2020-06-10 16:36:18 -04:00
adroitwhiz
67e372c088
Merge pull request #600 from adroitwhiz/i-despise-floats
...
Rewrite the pen line shader to be more numerically stable
2020-06-09 15:21:03 -04:00
adroitwhiz
de4073ce7d
Merge pull request #569 from adroitwhiz/extract-drawable-delete-framebuffer
...
Delete framebuffer in extractDrawable
2020-06-04 17:00:21 -04:00
adroitwhiz
04cc67139e
Delete framebuffer in extractDrawable
2020-06-02 16:01:31 -04:00
adroitwhiz
7586e1c890
Add logging to updateCPURenderAttributes
2020-05-20 16:07:59 -04:00
adroitwhiz
e7b1504117
Move matrix + silhouette updates into method
2020-05-19 16:02:12 -04:00
adroitwhiz
b5e27462d9
Pass line length as a uniform
...
HATE. LET ME TELL YOU HOW MUCH I'VE COME TO HATE GLSL FLOATS SINCE I BEGAN TO LIVE. THERE ARE 387.44 MILLION MILES OF PRINTED CIRCUITS IN WAFER THIN LAYERS ACROSS THE MILLIONS OF MOBILE GPUS ACROSS THE WORLD. IF THE WORD HATE WAS ENGRAVED ON EACH NANOANGSTROM OF THOSE HUNDREDS OF MILLIONS OF MILES IT WOULD NOT EQUAL ONE ONE-BILLIONTH OF THE HATE I FEEL FOR GLSL FLOATS AT THIS MICRO-INSTANT. HATE. HATE.
2020-05-14 09:39:43 -04:00
adroitwhiz
aaffc77b23
Clarify isTouchingColor ghost comment
2020-05-11 16:07:05 -04:00
adroitwhiz
d867e62c74
Don't apply ghost to "touching color" drawables
2020-05-11 16:07:05 -04:00
adroitwhiz
ffca1edcce
Rewrite the pen line shader to be more numerically stable
2020-05-08 15:19:33 -04:00
adroitwhiz
885f062449
Add extractDrawableScreenSpace method
2020-05-07 19:35:24 -04:00
adroitwhiz
3612461f9c
Merge pull request #478 from adroitwhiz/fix-fence-bounds
...
Always use getAABB for fence bounds
2020-05-07 15:43:28 -04:00
adroitwhiz
7c710c0680
Merge pull request #474 from adroitwhiz/deobfuscate-convex-hull
...
Ergonomics: Deobfuscate _getConvexHullPointsForDrawable
2020-05-07 15:28:18 -04:00
adroitwhiz
fe91133565
Re-add link to 2.0's convex hull algorithm
2020-05-07 15:21:16 -04:00
Chris Willis-Ford
4b03eb29fd
Merge pull request #590 from adroitwhiz/i-hate-safari
...
Tweak pen shader to avoid float precision issues
2020-05-06 13:38:32 -07:00
adroitwhiz
51bceb68e5
Address review feedback
2020-05-06 16:21:18 -04:00
adroitwhiz
70c64f035c
Deobfuscate _getConvexHullPointsForDrawable
2020-05-05 16:25:38 -04:00
adroitwhiz
4b7558f2d2
Fix another annoying precision bug.
...
Who knew fragment shaders were so difficult?
2020-05-01 14:04:03 -04:00
adroitwhiz
0b47d87f2f
Tweak pen shader to avoid float precision issues
2020-04-25 19:43:20 -04:00
adroitwhiz
41e21ed129
Only resize canvas when necessary
2020-04-24 18:51:48 -04:00
adroitwhiz
6d28f42d57
Call draw() after resizing canvas
2020-04-24 16:20:11 -04:00
adroitwhiz
e9d6c1d13f
Update drawables' matrix+silhouette for hull calc.
2020-04-15 04:51:34 -04:00
DD Liu
bf43ef363a
Revert "Revert "Revert "Draw pen lines via fragment shader"""
2020-04-09 12:27:19 -04:00
DD Liu
4a521509da
Merge branch 'develop' into revert-559-revert-438-pen-shader
2020-04-02 14:28:08 -04:00
DD Liu
d17066b745
Merge pull request #475 from adroitwhiz/penskin-silhouette-from-data
...
Set PenSkin silhouette data directly
2020-04-02 14:24:49 -04:00
DD Liu
6cde82d33d
Merge pull request #556 from adroitwhiz/unmultiply-extracted-drawables
...
Un-premultiply extracted drawables
2020-04-02 14:24:34 -04:00
DD Liu
4958bb5c69
Revert "Revert "Draw pen lines via fragment shader""
2020-04-02 14:14:06 -04:00
adroitwhiz
a427461467
Clarify draw mode comments
2020-03-26 23:01:18 -04:00