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

Add support for multisampled render textures #67

Merged
merged 1 commit into from
Apr 24, 2021

Conversation

dev7355608
Copy link
Contributor

This change makes it possible to enable multisampling; it works with and without double buffering.

const layer = new PIXI.display.Layer();
layer.useRenderTexture = true;
layer.useDoubleBuffer = true;

const renderTexture = layer.getRenderTexture();
renderTexture.framebuffer.multisample = PIXI.MSAA_QUALITY.HIGH;

const layerSprite = new PIXI.Sprite(renderTexture);

// ...

@ivanpopelyshev ivanpopelyshev merged commit 4b5b29d into pixijs:master Apr 24, 2021
@ivanpopelyshev
Copy link
Collaborator

good idea! though i dont remember whether double buffering works now, but blit there is good.

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

2 participants