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

Alpha Blending / Transparency #3

Open
bonsairobo opened this issue Sep 14, 2022 · 1 comment
Open

Alpha Blending / Transparency #3

bonsairobo opened this issue Sep 14, 2022 · 1 comment

Comments

@bonsairobo
Copy link
Collaborator

As of writing, the vertex pulling renderer does not support alpha blending for several reasons:

  • vertex pulling optimizations (3-face index buffer) preclude backface culling
  • vertex pulling selection of visible faces may be "wrong" when the chosen face is a "back face"
    • the face will be alpha blended, but it should be culled entirely

For these reasons, alpha blending is currently disabled in the vertex pulling pipeline (using BlendState::REPLACE).

If we are going to support transparency, I think it should happen in its own pipeline, or at least a specialized pipeline. There will need to be some big changes to the index buffering as well as the shader code.

@bonsairobo
Copy link
Collaborator Author

RE #2 , I will still reserve a byte for alpha in any color mode, but it may go unused for a while.

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

No branches or pull requests

1 participant