2 #extension GL_NV_fragment_shader_barycentric : require
6 layout(location = 0) pervertexNV in float vertexIDs[3];
8 layout(location = 1) out float value;
11 value = (gl_BaryCoordNoPerspNV.x * vertexIDs[0] +
12 gl_BaryCoordNoPerspNV.y * vertexIDs[1] +
13 gl_BaryCoordNoPerspNV.z * vertexIDs[2]);