13 lines
463 B
Plaintext
13 lines
463 B
Plaintext
|
#version 310 es
|
||
|
#extension GL_EXT_tessellation_shader : require
|
||
|
|
||
|
layout(cw, quads, fractional_even_spacing) in;
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
gl_Position = vec4(gl_TessCoord.x * gl_TessLevelInner[0] * gl_TessLevelOuter[0] + (1.0 - gl_TessCoord.x) * gl_TessLevelInner[0] * gl_TessLevelOuter[2],
|
||
|
gl_TessCoord.y * gl_TessLevelInner[1] * gl_TessLevelOuter[3] + (1.0 - gl_TessCoord.y) * gl_TessLevelInner[1] * gl_TessLevelOuter[1],
|
||
|
0, 1);
|
||
|
}
|
||
|
|