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

Preserve alpha coverage on downsample in ISPC #34

Merged
merged 26 commits into from
Sep 6, 2023

Conversation

Athosvk
Copy link
Contributor

@Athosvk Athosvk commented Aug 30, 2023

Same as #33 , but implemented in ISPC an separated as discussed

build.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
Athosvk and others added 2 commits September 4, 2023 10:33
Co-authored-by: Marijn Suijten <marijn@traverseresearch.nl>
src/ispc/kernels/rescale_alpha.ispc Outdated Show resolved Hide resolved
src/ispc/kernels/rescale_alpha.ispc Outdated Show resolved Hide resolved
src/ispc/kernels/rescale_alpha.ispc Outdated Show resolved Hide resolved
src/ispc/kernels/rescale_alpha.ispc Outdated Show resolved Hide resolved
src/ispc/kernels/rescale_alpha.ispc Outdated Show resolved Hide resolved
src/ispc/kernels/rescale_alpha.ispc Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
@Athosvk Athosvk merged commit 4a75561 into main Sep 6, 2023
10 checks passed
@@ -35,10 +35,42 @@ impl<'a> Image<'a> {
}
}

/// Scales the alpha to the downscaled texture to preserve the overall alpha coverage.
///
/// If alpha cutoff is specified, any alpha value above it is considered visible of
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// If alpha cutoff is specified, any alpha value above it is considered visible of
/// If `alpha_cutoff` is specified, any alpha value above it is considered visible of

Copy link
Member

Choose a reason for hiding this comment

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

Otherwise "an alpha cutoff"

@MarijnS95 MarijnS95 deleted the preserve-alpha-coverage-ispc branch October 23, 2023 18:55
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.

None yet

3 participants