PDA

View Full Version : Using gl_TessLevelInner correctly?



fred_em
05-03-2011, 07:20 AM
Hi,

I want to tessellate my patch so that I have the following tessellation:


x----x----x
| /| /|
| / | / |
| / | / |
|/ |/ |
x----x----x


I tried with

gl_TessLevelOuter[0] = gl_TessLevelOuter[2] = 1; // left and right edges
gl_TessLevelOuter[1] = gl_TessLevelOuter[3] = 2; // upper and lower edges

No matter what I do with gl_TessLevelInner[0] and [1], I can't get it right.

Any idea?

Thanks,
Fred

fred_em
05-03-2011, 09:21 AM
Question posted to the GLSL forum - please go there if you want to reply

http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=296725#Post2967 25

Sorry about posting to the wrong forum.