|
Last change
on this file since 12091 was
12091,
checked in by wiesep, 7 years ago
|
|
Updated programs and adjusted Material to work with GLSL>150
|
|
File size:
363 bytes
|
| Line | |
|---|
| 1 | #version 400 core |
|---|
| 2 | |
|---|
| 3 | uniform float g_fTessellationFactor; |
|---|
| 4 | |
|---|
| 5 | // GLSL tessellation control shader. |
|---|
| 6 | layout (vertices = 3) out; |
|---|
| 7 | void main() |
|---|
| 8 | { |
|---|
| 9 | gl_TessLevelOuter[0] = gl_TessLevelOuter[1] = gl_TessLevelOuter[2] = g_fTessellationFactor; |
|---|
| 10 | gl_TessLevelInner[0] = g_fTessellationFactor; |
|---|
| 11 | |
|---|
| 12 | gl_out[gl_InvocationID].gl_Position = gl_in[gl_InvocationID].gl_Position; |
|---|
| 13 | } |
|---|
| 14 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.