gedeng/Shader/terrain.tcs

23 lines
503 B
Plaintext
Raw Normal View History

#version 430
layout(vertices = 3) out;
in PipelineData {
vec4 position;
vec2 texture_coordinate;
} tc_in[];
out PipelineData {
vec4 position;
vec2 texture_coordinate;
} tc_out[];
void main() {
tc_out[gl_InvocationID].texture_coordinate = tc_in[gl_InvocationID].texture_coordinate;
tc_out[gl_InvocationID].position = tc_in[gl_InvocationID].position;
2021-05-30 20:02:12 +02:00
gl_TessLevelInner[0] = 12;
gl_TessLevelOuter[0] = 12;
gl_TessLevelOuter[1] = 12;
gl_TessLevelOuter[2] = 12;
}