A complete 3D game development suite written purely in Java.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jmonkeyengine/jme3-testdata/src/main/resources/Materials/Tess/SimpleTess.tsctrl

17 lines
543 B

layout(vertices=4) out;
out gl_PerVertex{
vec4 gl_Position;
}gl_out[];
uniform int m_TessellationFactor;
void main(){
if (gl_InvocationID == 0){
gl_TessLevelOuter[0]=m_TessellationFactor;
gl_TessLevelOuter[1]=m_TessellationFactor;
gl_TessLevelOuter[2]=m_TessellationFactor;
gl_TessLevelOuter[3]=m_TessellationFactor;
gl_TessLevelInner[0]=m_TessellationFactor;
gl_TessLevelInner[1]=m_TessellationFactor;
}
gl_out[gl_InvocationID].gl_Position = gl_in[gl_InvocationID].gl_Position;
}