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
d9c854f1fc
Remove setRotationCenter API
2020-06-23 02:29:14 -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
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
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
adroitwhiz
dd93869411
Set rotation center to [0, 0] in setEmptyImageData
2020-03-04 23:49:09 -05:00
adroitwhiz
90b8f15d8c
Un-premultiply extracted drawables
2020-02-04 22:32:04 -05:00
adroitwhiz
b194394cfd
Set PenSkin silhouette data directly
2020-01-28 21:05:33 -05:00
adroitwhiz
0cb97a202a
Address review feedback
2020-01-24 05:28:20 -05:00
adroitwhiz
10a6d87eb6
Premultiplied alpha, take 2
2020-01-23 14:41:53 -05:00
Chris Willis-Ford
fed02ca582
Merge pull request #544 from adroitwhiz/fix-vector-silhouette
...
Fix SVGSkin silhouettes
2020-01-13 14:34:52 -05:00
adroitwhiz
2985f2ac54
Fix SVGSkin silhouettes
2020-01-10 06:24:01 -05:00
DD Liu
a67cd48ef6
Merge pull request #485 from adroitwhiz/effect-transform-optimizations
...
Optimize effect transforms
2020-01-09 14:52:14 -05:00
adroitwhiz
6d9cec8222
Set zero-sized SVG MIPs to empty texture
2020-01-09 01:09:47 -05:00
adroitwhiz
8d1117b36a
Simplify EffectTransform call signatures
2020-01-07 16:11:53 -05:00
adroitwhiz
dd2d54ed13
Optimize effect transforms
2020-01-07 16:11:39 -05:00
Chris Willis-Ford
478698cf12
Merge pull request #527 from adroitwhiz/svgmip-synchronous
...
Synchronous SVG mipmaps
2020-01-07 08:54:00 -08:00
adroitwhiz
6662a7d556
Address review feedback
...
Co-Authored-By: Chris Willis-Ford <cwillisf@users.noreply.github.com>
2020-01-07 10:47:10 -05:00
DD Liu
e12646871e
Merge pull request #487 from adroitwhiz/pen-stamp-to-framebuffer
...
penStamp() directly to the PenSkin's framebuffer
2019-12-11 15:30:28 -05:00
adroitwhiz
bf5d666737
Synchronous SVG mipmaps
2019-11-26 16:48:45 -05:00
Chris Willis-Ford
b1274d5820
Merge pull request #431 from ktbee/javascript-scaled-textures
...
Add JavaScript MIPs for scaling textures larger and smaller
2019-11-26 12:57:51 -08:00