These default values correspond to the TCS per-patch output variables gl_TessLevelOuter and gl_TessLevelInner. When pname is GL_PATCH_DEFAULT_INNER_LEVEL, values is a 2-element array of floats defining the two inner tessellation levels. When pname is GL_PATCH_DEFAULT_OUTER_LEVEL, values is a 4-element array of floats defining the four outer tessellation levels. Void glPatchParameterfv(GLenum pname, const GLfloat * values) These are defined by the following function: The amount of tessellation done in this case is taken from default values set into the context. If no TCS is active in the current program or program pipeline, then the patch data is passed directly from the Vertex Shader invocations to the tessellation primitive generation step. Therefore, for each patch provided by the application, one patch will be provided to the next tessellation stage. However, a TCS cannot discard a patch (directly it can do so indirectly), nor can it write multiple patches. The TCS can change the size of a patch, adding more vertices per-patch or providing fewer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |