Skip to content

Conversation

@adroitwhiz
Copy link
Contributor

Resolves

Resolves #573

Proposed Changes

This PR changes the EffectTransform.transformPoint's pixelate routine to divide by u_pixelate instead of multiplying.

Reason for Changes

In order to calculate the size of a "pixelated" pixel, the fragment shader divides the size of the skin by u_pixelate. Previously, the CPU path (EffectTransform) erroneously multiplied by u_pixelate, resulting in the pixelate effect not being properly applied.

Test Coverage

A "pixelate effect touching" test has been added.

@adroitwhiz adroitwhiz force-pushed the fixelate branch 2 times, most recently from 33603a0 to 8636eb1 Compare March 21, 2020 01:18
Copy link
Contributor

@cwillisf cwillisf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@cwillisf cwillisf merged commit 60a2ea8 into scratchfoundation:develop Aug 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Touching" blocks on CPU path do not apply pixelate effect

3 participants