Skip to content

HoloPlayShaders.h

This file contains two static string definitions (no executable code) for the lenticular shader that turns a "quilt" texture containing a multistereo image into Looking Glass lenticular output. The lenticular shader depends on two sets of uniforms.

The first set of uniforms (calibration values) varies from device to device, and must be queried using functions declared in HoloPlayCore.h. The second set (quilt settings) must be provided by the developer and depends on the desired resolution of their multiview render.

The developer should compile the shaders, render views to a quilt texture, bind the quilt texture, and render a full screen quad using the shaders.