This weekend’s work on visionOS focused on simulating a lighting glitch.
Lighting is useful for setting moods (spooky, cheerful, sexy, etc.), so I am glad we can do this in mixed reality in visionOS.
At any given time, the soldier is lit by an ImageBasedLight and the ambient light dialed down to 10%.
The ImageBasedLight is fed by one of two skybox images wrapped in an ImageBasedLightComponents. A quick toggle between the two ImageBasedLightComponents is all that is needed to create the flickering effect. (see figure below).
The two spheres floating about head height are always lit by ambient light, so they don’t flicker.