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.fragmentShaderBarycentric2.frag
Normal file
15
Test/spv.fragmentShaderBarycentric2.frag
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#version 320 es
|
||||
#extension GL_NV_fragment_shader_barycentric : require
|
||||
|
||||
precision highp float;
|
||||
|
||||
layout(location = 0) pervertexNV in float vertexIDs[3];
|
||||
|
||||
layout(location = 1) out float value;
|
||||
|
||||
void main () {
|
||||
value = (gl_BaryCoordNoPerspNV.x * vertexIDs[0] +
|
||||
gl_BaryCoordNoPerspNV.y * vertexIDs[1] +
|
||||
gl_BaryCoordNoPerspNV.z * vertexIDs[2]);
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue