#version 330 core #extension GL_ARB_shading_language_420pack: require layout(std140) uniform; #define FRAG_COLOR 0 layout(location = FRAG_COLOR, index = 0) out float outColour; in block { float depth; } inPs; // END UNIFORM DECLARATION void main() { outColour = inPs.depth; }