Source: shaders/shaders.vr.secondpass.vertex.js

/**
 *
 */
export default class {
  /**
   *
   */
  compute() {
    return `
varying vec4 vPos;
varying mat4 vProjectionViewMatrix;
varying vec4 vProjectedCoords;

//
// main
//
void main() {

vPos = modelMatrix * vec4(position, 1.0 );
vProjectionViewMatrix = projectionMatrix * viewMatrix;
vProjectedCoords =  projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0 );

}
      `;
  }
}