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

avm2: Implement DisplayObject.blendShader #12238

Merged
merged 3 commits into from
Jul 26, 2023

Conversation

Aaron1011
Copy link
Member

We already had almost all of the PixelBender support needed for this. Since this is run during displayobject rendering, we need to support MSAA, which requires us to create a RenderPipeline per sample count used.

This fixes Closure's rendering (previously, the game rendered as a solid white background with a few gray ovals).

@Lord-McSweeney
Copy link
Collaborator

This also closes #58.

@Aaron1011 Aaron1011 force-pushed the shader-blend-mode branch from 6338d4d to 5dd9935 Compare July 23, 2023 18:38
swf/src/types.rs Outdated Show resolved Hide resolved
@Aaron1011 Aaron1011 force-pushed the shader-blend-mode branch from 5dd9935 to d0f9ea6 Compare July 25, 2023 14:01
@Aaron1011
Copy link
Member Author

@Dinnerbone I introduced ExtendedBlendMode with a Shader variant

@Aaron1011 Aaron1011 force-pushed the shader-blend-mode branch 3 times, most recently from 1b846ba to 6702f79 Compare July 25, 2023 16:41
@Aaron1011 Aaron1011 enabled auto-merge (rebase) July 26, 2023 23:09
@Aaron1011 Aaron1011 disabled auto-merge July 26, 2023 23:09
@Aaron1011 Aaron1011 enabled auto-merge (squash) July 26, 2023 23:09
We already had almost all of the PixelBender support needed for this.
Since this is run during displayobject rendering, we need to support
MSAA, which requires us to create a `RenderPipeline` per sample count
used.

This fixes Closure's rendering (previously, the game rendered as a solid
white background with a few gray ovals).
@Aaron1011 Aaron1011 force-pushed the shader-blend-mode branch from 6702f79 to 70b2cd2 Compare July 26, 2023 23:09
@Aaron1011 Aaron1011 merged commit 583caa3 into ruffle-rs:master Jul 26, 2023
danielhjacobs pushed a commit to danielhjacobs/ruffle that referenced this pull request Aug 28, 2023
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.

3 participants