Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properly blur box shadows, and correctly calculate the new texture coordinates when clipping rectangles. #74

Merged
merged 1 commit into from Nov 5, 2015

Conversation

@pcwalton
Copy link
Collaborator

pcwalton commented Nov 5, 2015

We use a closed form formula for computing Gaussian blurs of a box
shadow. Assuming the blur radius is less than the size of the box, the
maximum per-pixel error from this formula has been observed to be less
than 3% in practice. It avoids the creation of intermediate textures.

@pcwalton pcwalton force-pushed the pcwalton:box-shadow-blur branch from 029ca17 to 994f04c Nov 5, 2015
coordinates when clipping rectangles.

We use a closed form formula for computing Gaussian blurs of a box
shadow. Assuming the blur radius is less than the size of the box, the
maximum per-pixel error from this formula has been observed to be less
than 3% in practice. It avoids the creation of intermediate textures.
glennw added a commit that referenced this pull request Nov 5, 2015
Properly blur box shadows, and correctly calculate the new texture coordinates when clipping rectangles.
@glennw glennw merged commit 8da1d25 into servo:master Nov 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.