Render a transparent image but allow masking (certain pixels can be 'discarded') so you can see through certain parts. In this tutorial we create a full screen image which is drawn first- then for certain pixels they're allowed to be discarded (so you can render/see through to the background). In the background we draw a pair of cubes but using an ortho (orthogonal projection matrix - vs a perspective matrix) - so things do-not get smaller as they get further away.
Masked overlay image with a set of nested cubes (using transparncy) rendered in the background using ortho projection (fixed size with distance).
The background image (full screen) is split into its own function object (easier to manage) and can be removed/added as needed. Just be sure it is drawn first.
Visitor:
Copyright (c) 2002-2025 xbdev.net - All rights reserved.
Designated articles, tutorials and software are the property of their respective owners.