[英]how to draw points as textures/text on touch in opengl-es in android?
要为您的点使用纹理,可以在片段着色器中使用以下代码行。
lowp vec4 diffuse_color = texture2D(texture1, gl_PointCoord);
gl_FragColor = vec4(color.xyz, diffuse_color.x);
确保顶点着色器中的gl_PointSize
足够大。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.