Last change
on this file since 12373 was
12115,
checked in by wiesep, 6 years ago
|
Changed folder structure, deletet some unused files and cleaned up code
|
File size:
472 bytes
|
Rev | Line | |
---|
[12115] | 1 | #version 400 core |
---|
| 2 | |
---|
| 3 | uniform mat4 g_mWorldViewProjection; |
---|
| 4 | |
---|
| 5 | // GLSL tessellation evaluation shader (domain shader in HLSL). |
---|
| 6 | layout(triangles, equal_spacing, cw) in; |
---|
| 7 | void main() |
---|
| 8 | { |
---|
| 9 | // Baricentric interpolation |
---|
| 10 | vec3 finalPos = vec3(gl_TessCoord.x * gl_in[0].gl_Position + |
---|
| 11 | gl_TessCoord.y * gl_in[1].gl_Position + |
---|
| 12 | gl_TessCoord.z * gl_in[2].gl_Position); |
---|
| 13 | gl_Position = g_mWorldViewProjection * vec4(finalPos, 1.0); |
---|
| 14 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.