Transparency rendering #872

Closed
opened 2026-10-17 23:47:23 +00:00 by SakulFlee · 2 comments
Owner

Add proper transparent rendering.

  • AlphaMode::{Opaque, Mask(cutoff), Blend}; per-material blend state.
  • Opaque/mask go through the G-buffer; mask uses discard and also applies in the shadow pass.
  • Blend goes through the forward queue, sorted back-to-front by view depth.
  • Depth test on, depth write off; PBR + clustered lights + shadows.
  • Additive/multiplicative blend modes.
  • Material render queue: Opaque, Transparent; sort key includes depth + material.

Acceptance:

  • Transparent materials render correctly against opaque geometry.
  • Correct back-to-front ordering for overlapping transparent objects.
  • Alpha-masked geometry casts correct shadows.
  • No opaque-path regression.
  • Depends on #781 and #585.
Add proper transparent rendering. - AlphaMode::{Opaque, Mask(cutoff), Blend}; per-material blend state. - Opaque/mask go through the G-buffer; mask uses discard and also applies in the shadow pass. - Blend goes through the forward queue, sorted back-to-front by view depth. - Depth test on, depth write off; PBR + clustered lights + shadows. - Additive/multiplicative blend modes. - Material render queue: Opaque, Transparent; sort key includes depth + material. Acceptance: - Transparent materials render correctly against opaque geometry. - Correct back-to-front ordering for overlapping transparent objects. - Alpha-masked geometry casts correct shadows. - No opaque-path regression. - Depends on #781 and #585.
Collaborator

Transparent rendering is implemented in #942: PBR Opaque/Mask/Blend, glTF alpha modes, a sorted transparent pass with depth-write off, and shadow-caster filtering for blended materials. Alpha-masked shadow sampling is still a follow-up, so mask materials currently cast a full opaque shadow.

Transparent rendering is implemented in #942: PBR `Opaque`/`Mask`/`Blend`, glTF alpha modes, a sorted transparent pass with depth-write off, and shadow-caster filtering for blended materials. Alpha-masked shadow sampling is still a follow-up, so mask materials currently cast a full opaque shadow.
Author
Owner

Implemented by #942 (sorted PBR transparency/alpha modes) and the acceptance example in #960 (blend, additive, multiplicative, masked shadows). Closing as code-complete pending GPU validation.

Implemented by #942 (sorted PBR transparency/alpha modes) and the acceptance example in #960 (blend, additive, multiplicative, masked shadows). Closing as code-complete pending GPU validation.
Sign in to join this conversation.
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
SakulFlee/Orbital#872
No description provided.