大体效果为上图,这里写在fragment shader的判断语句为length(gl_PointCoord - vec2(0.5)) > 0.5时,discard该片元。详细代码如下:.
確定! 回上一頁