// Set a material to render during the translucent pass material.setSortOrder(SortOrder.TRANSLUCENT)
enum SortOrder : Enum<SortOrder>
| Member | Description |
|---|---|
OPAQUE |
For fully opaque materials that don't require alpha blending. Rendered front-to-back for efficiency with depth testing.
|
MASKED |
For materials with binary transparency (fully opaque or fully transparent pixels). No rendering order applied based on distance.
|
TRANSLUCENT |
For materials with partial transparency that require alpha blending. Rendered back-to-front to ensure correct blending.
|
POSTPROCESS |
For effects that are applied at the end of the rendering pipeline. No rendering order applied based on distance.
|
PREPROCESS |
For effects that need to be applied at the beginning of the rendering pipeline. Rendered front-to-back. Rendered before all other objects (first in the rendering sequence).
|
HOLE_PUNCH |
For materials that "punch holes" in the scene, typically used with layers. Rendered front-to-back.
|
order
:
Int
[Get] |
The numeric value representing the SortOrder type.
Signature
val order: Int |