Add support for VK_EXT_fragment_shader_barycentric

This commit is contained in:
stusmith
2022-05-13 17:23:29 +01:00
parent 86ff4bca1d
commit ebf45697be
22 changed files with 3959 additions and 3710 deletions

View File

@@ -0,0 +1,15 @@
#version 450
#extension GL_EXT_fragment_shader_barycentric : require
layout(location = 0) pervertexEXT in vertices {
float attrib;
} v[];
layout(location = 1) out float value;
void main () {
value = (gl_BaryCoordEXT.x * v[0].attrib +
gl_BaryCoordEXT.y * v[1].attrib +
gl_BaryCoordEXT.z * v[2].attrib);
}