How to cut/hide projected area from bottom and top of GLControl - openTK
问题 With the help of this link, I can project an image in cylindrical shape. Can I able to remove or hide the projected area from top and bottom of image as shown in the image below? 回答1: You have to discard fragmnts dependent on the u ( .y ) texture coordinate. According to the fragment shader of the original question How to project top and bottom area of openGL control: precision highp float; uniform sampler2D sTexture; varying vec2 vTexCoord; void main() { vec2 pos = vTexCoord.xy * 2.0 - 1.0;