#version 120
#ifdef GL_ARB_shading_language_420pack
#extension GL_ARB_shading_language_420pack : require
#endif
#extension GL_EXT_gpu_shader4 : require

#ifndef SPIRV_CROSS_CONSTANT_ID_0
#define SPIRV_CROSS_CONSTANT_ID_0 2048.0
#endif
const float DEPTH_TEX_SZ = SPIRV_CROSS_CONSTANT_ID_0;

varying float quant_fract;
attribute float quant;
varying vec2 centerpt;
attribute vec2 pos;
varying float max_width;

void main()
{
    quant_fract = quant / 120.0;
    centerpt = pos * DEPTH_TEX_SZ;
    max_width = 10.0 * quant_fract;
    gl_Position = vec4((pos * 2.0) - vec2(1.0), 1.0, 1.0);
}

