DD Liu
13d62bd75a
Add back clamping in sampleColor4b, and handling of values near zero in getLocalPosition
2020-08-25 03:26:30 -04:00
DD Liu
b0acea9f35
Pull in parts of pull 479 which move clamping to texture space into silhouette
2020-08-13 14:53:13 -04:00
DD Liu
5fa9c765d7
Change local space to clamp to texture space in is touching queries
2020-08-13 14:06:37 -04:00
DD Liu
749b110301
Add todo
2020-08-13 13:14:48 -04:00
DD Liu
b119d359bb
Fix floating point issues near 0
2020-08-13 00:50:43 -04:00
adroitwhiz
151e8182b0
Move isTouching logic to updateCPURenderAttributes
2020-07-21 15:40:48 -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
d867e62c74
Don't apply ghost to "touching color" drawables
2020-05-11 16:07:05 -04:00
adroitwhiz
10a6d87eb6
Premultiplied alpha, take 2
2020-01-23 14:41:53 -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
DD Liu
58aa05c0a7
Merge pull request #480 from adroitwhiz/usenearest-fix-2
...
Fix useNearest() to take renderer scale into account, take two
2019-11-06 15:43:06 -05:00
DD Liu
503c3f7b0b
Merge branch 'develop' into rm-update-fast-bounds
2019-10-01 15:53:19 -04:00
DD Liu
857b541e84
Merge pull request #469 from mzgoddard/update-drawable
...
Add update drawable methods for each property
2019-10-01 15:39:50 -04:00
Karishma Chadha
11665299bc
Revert "Put Skin Alter Push Back In"
2019-09-26 09:39:05 -05:00
Karishma Chadha
2a1d215e50
Revert "Revert "Revert "Revert "Skin alter push""""
2019-09-12 13:43:32 -04:00
Karishma Chadha
1cd9e54834
Revert "Revert "Revert "Skin alter push"""
2019-09-12 13:24:03 -04:00
Chris Willis-Ford
928cd60dd5
Merge pull request #496 from LLK/revert-493-revert-470-skin-alter-push
...
Revert "Revert "Skin alter push""
2019-09-04 18:14:41 -07:00
DD Liu
2d4419c929
Merge pull request #443 from adroitwhiz/effects-nearest
...
Always use linear interpolation on vector skins with distortion effects applied
2019-09-04 17:19:52 -04:00
adroitwhiz
ad6ddd9f99
add more parentheses
2019-09-04 15:40:49 -04:00
Karishma Chadha
7c4393787b
Revert "Revert "Skin alter push""
2019-08-13 11:42:51 -04:00
Karishma Chadha
a340b8a04b
Revert "Revert "Initialialize AABB Rectangle ""
2019-08-13 11:41:11 -04:00
Karishma Chadha
c2e32d2baf
Merge pull request #494 from LLK/revert-467-rect-init-matrix
...
Revert "Initialialize AABB Rectangle "
2019-08-13 11:38:41 -04:00
Karishma Chadha
c8f7496fba
Revert "Initialialize AABB Rectangle "
2019-08-13 11:26:07 -04:00
Karishma Chadha
4a28cffcd4
Revert "Skin alter push"
2019-08-13 11:22:27 -04:00
adroitwhiz
ae23bb5e56
add jsdoc for useNearest
2019-07-11 10:23:15 -04:00
adroitwhiz
99d14f0e16
Take screen-space scale into account w/ useNearest
2019-07-11 10:07:33 -04:00
Chris Willis-Ford
cc5fea803e
Merge pull request #470 from mzgoddard/skin-alter-push
...
Skin alter push
2019-07-01 10:43:11 -07:00
Michael "Z" Goddard
ab603ffa92
push skin alteration down from renderwebgl
2019-06-18 17:18:48 -04:00
Michael "Z" Goddard
5d7957ff9b
document out how initFromModelMatrix works
2019-06-11 14:32:33 -04:00
Michael "Z" Goddard
a840089bc9
fence bounds
2019-06-11 13:05:22 -04:00
Michael "Z" Goddard
96aa930895
update drawable calls
2019-06-07 18:32:04 -04:00
Michael "Z" Goddard
89e6de035d
remove updateMatrix call from getFastBounds
2019-06-07 11:17:54 -04:00
Michael "Z" Goddard
bf47f69b04
use a destination parameter for bounds; add initFromMatrixRadius
...
- pass bounds as a destination parameter
- add initFromMatrixRadius
- use initFromMatrixRadius in getAABB
2019-06-06 14:39:56 -04:00
adroitwhiz
d0ed283c72
Merge remote-tracking branch 'upstream/develop' into effects-nearest
2019-05-22 16:10:30 -04:00
adroitwhiz
34f265ab22
strict inequality
2019-05-22 04:52:30 -04:00
adroitwhiz
f9309b1ace
be more s e m a n t i c
2019-04-20 08:12:22 -04:00
adroitwhiz
7599a82406
Never useNearest on distorted vector skins
2019-04-20 07:59:09 -04:00
Paul Kaplan
757d7e3c96
Revert "Adjust CPU isTouchingColor to match GPU results (again)"
2019-04-19 16:13:47 -04:00
Christopher Willis-Ford
80630a64da
Adjust CPU isTouchingColor to match GPU results
2019-03-20 11:21:05 -07:00
Katie Broida
8f007c0986
Only check local position against mosaic effect transform if it falls within the drawable's space
2019-03-18 15:25:40 -04:00
Chris Willis-Ford
f2d457a827
Revert "Adjust CPU isTouchingColor to match GPU results"
2019-02-07 13:00:15 -08:00
Christopher Willis-Ford
1db67a474e
Adjust CPU isTouchingColor to match GPU results
2019-02-04 11:20:59 -08:00
DD
5f38cd1ee1
Always use nearest for raster textures
2019-01-03 12:00:28 -05:00
Katie Broida
770ae92b25
Align the bounding box to the center of the pixel instead of top left
2018-12-21 16:51:36 -05:00
Michael "Z" Goddard
b901c1ac75
round drawable position
...
Scratch 2 rendered sprite position is at whole numbers, while its vm
position may be rational numbers.
2018-08-24 18:19:19 -04:00
Mx Corey Frang
c54a928f0a
Touching color implementation ( #312 )
...
* Touching color draft implementation
* New constant for CPU/GPU render split determined, removing query param
* Small fix for pick tests
2018-08-08 14:20:35 -04:00
Michael "Z" Goddard
c08b853519
add uniformName to ShaderManager EFFECT_INFO entries ( #328 )
2018-08-08 14:04:37 -04:00
Mx Corey Frang
6863613d20
Optimizing isTouching while creating a drawableTouches for sensing mouse pointer ( #325 )
...
* Allow 'isTouching' and 'pick' to still work on invisible drawables.
* Always ignore visibility for isTouching on drawable
* Filter invisble drawbles in isTouchingDrawable per rules of collision
* polish up some docs/get logic 👍
* leftover line from deleted comment
* revert to ghosted pick behavior
* Add clientSpaceToScratchBounds method
* fix lint
* add some pick tests
2018-08-07 10:56:28 -04:00