Transparency
In the PerspectiveSquareCuboid.xaml file, remove the markup that defines the Material property, or set the Brush property of the first DiffuseMaterial element to Transparent. Here's what you'll see:
Figure 1-23. PerspectiveSquareCuboidNoMaterial.xaml
You're actually peering inside the figure. Although the orientation is visually ambiguous, the darker square part is actually the inside rear of the figure. Because the Material property is now gone or set to a transparent brush, any triangle viewed from the front is invisible. Because the BackMaterial still exists, any triangle viewed from the rear is red. Consequently, the top, left, and ...
Get 3D Programming for Windows® now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.