Add-support-for-SPV_NV_fragment_shader_barycentric
This commit is contained in:
parent
6dd4757f0f
commit
9eada4b971
19 changed files with 4369 additions and 4061 deletions
15
Test/spv.fragmentShaderBarycentric.frag
Normal file
15
Test/spv.fragmentShaderBarycentric.frag
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#version 450
|
||||
#extension GL_NV_fragment_shader_barycentric : require
|
||||
|
||||
layout(location = 0) pervertexNV in vertices {
|
||||
float attrib;
|
||||
} v[];
|
||||
|
||||
layout(location = 1) out float value;
|
||||
|
||||
void main () {
|
||||
value = (gl_BaryCoordNV.x * v[0].attrib +
|
||||
gl_BaryCoordNV.y * v[1].attrib +
|
||||
gl_BaryCoordNV.z * v[2].attrib);
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue