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

TSL: Introduce premultipliedGaussianBlur #29604

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

sunag
Copy link
Collaborator

@sunag sunag commented Oct 9, 2024

Related issue: #29597 (comment)

Description

Gaussian blurs commonly used in shaders is different from other gaussian blurs used in image editing software, where the alpha is premultiplied. This is very useful for blurring transparent textures when you don't want to consider the non-transparent part of the image as you would with the traditional method.

image premultipliedGaussianBlur gaussianBlur
image image image

@sunag sunag added this to the r170 milestone Oct 9, 2024
@sunag sunag marked this pull request as ready for review October 9, 2024 20:40
@sunag sunag merged commit 4efe2d0 into mrdoob:dev Oct 9, 2024
11 checks passed
@sunag sunag deleted the dev-premul-gaussianblur branch October 9, 2024 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants