I need help with transparent cubes. #2724
Unanswered
Kerbal-Man
asked this question in
Q&A
Replies: 2 comments
-
@Kerbal-Man When you define the tint color, you can change the alpha with Here an example to draw a half-transparent RED cube. DrawCube(cubePosition, 2.0f, 2.0f, 2.0f, Fade(RED, 0.5f)); |
Beta Was this translation helpful? Give feedback.
0 replies
-
Do take care, you need to depth sort the tris of your cube or you'll get some odd results, you'll also need to draw everything behind the cubes too... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to draw some cubes with an option of how opaque it will be. Does anyone know how to do this?
Beta Was this translation helpful? Give feedback.
All reactions