mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-09 20:10:06 +00:00
559a5f1d82
This bug got introduced as part of EXT_mesh_shader changes 228c672
Also updated barycentric test cases to add coverage for multiple pervertexEXT array inputs
21 lines
617 B
GLSL
21 lines
617 B
GLSL
#version 320 es
|
|
#extension GL_EXT_fragment_shader_barycentric : require
|
|
|
|
precision highp float;
|
|
|
|
layout(location = 0) pervertexEXT in float vertexIDs[3];
|
|
layout(location = 1) pervertexEXT in float vertexIDs2[3];
|
|
|
|
layout(location = 1) out float value;
|
|
|
|
void main () {
|
|
value = (gl_BaryCoordNoPerspEXT.x * vertexIDs[0] +
|
|
gl_BaryCoordNoPerspEXT.y * vertexIDs[1] +
|
|
gl_BaryCoordNoPerspEXT.z * vertexIDs[2]);
|
|
|
|
value += (gl_BaryCoordNoPerspEXT.x * vertexIDs2[0] +
|
|
gl_BaryCoordNoPerspEXT.y * vertexIDs2[1] +
|
|
gl_BaryCoordNoPerspEXT.z * vertexIDs2[2]);
|
|
|
|
}
|