Updated displacement example

This commit is contained in:
saschawillems 2016-06-06 14:28:13 +02:00
parent 0ecff76c40
commit 2ec1a60535
16 changed files with 77 additions and 177 deletions

View file

@ -18,15 +18,15 @@ layout (location = 1) out vec2 outUV[3];
void main()
{
if (gl_InvocationID == 0)
{
gl_TessLevelInner[0] = ubo.tessLevel;
gl_TessLevelOuter[0] = ubo.tessLevel;
gl_TessLevelOuter[1] = ubo.tessLevel;
gl_TessLevelOuter[2] = ubo.tessLevel;
}
if (gl_InvocationID == 0)
{
gl_TessLevelInner[0] = ubo.tessLevel;
gl_TessLevelOuter[0] = ubo.tessLevel;
gl_TessLevelOuter[1] = ubo.tessLevel;
gl_TessLevelOuter[2] = ubo.tessLevel;
}
gl_out[gl_InvocationID].gl_Position = gl_in[gl_InvocationID].gl_Position;
gl_out[gl_InvocationID].gl_Position = gl_in[gl_InvocationID].gl_Position;
outNormal[gl_InvocationID] = inNormal[gl_InvocationID];
outUV[gl_InvocationID] = inUV[gl_InvocationID];
}