ReflectionsWithLayerSelection-macOS example bug.

On my early 2015 MacBook Pro with Catalina 10.15.7, the Apple sample code 'ReflectionsWithLayerSelection' only renders one cube map face on the sphere while the other faces remain black*. But oddly enough if I change the background color on the cube map from black:
MTLClearColorMake (0.0, 0.0, 0.0, 1.0);
to almost black:
MTLClearColorMake (0.0, 0.0, 0.01, 1.0);
all 6 faces of the cube map render correctly.

Weirdly, in the all-zero case I can see the temples in the missing faces initially render but slowly fade to black and disappear, and if I set any (or all) of the clear color components to 1.0, the temples in the missing faces again fade out!

*Sometimes a missing faces pops in for one frame.
That is indeed an odd bug and workaround. you've found. If you wouldn't mind, can you create a request with Feedback Assistant and repost the number here? It would be good to know more about the config of your MacBook Pro (particularly what GPU the sample was running on).

This is likely a driver bug but not many driver bug fixes are going into Catalina at this point. I'm hopeful you don't see this with Big Sur if/when you update.

Also, we don't get a lot of feedback on our Metal samples, so I'm curious whether this sample was helpful at all to you (despite the bug you ran into).
ReflectionsWithLayerSelection-macOS example bug.
 
 
Q