随笔分类 -  GLES

GLES
摘要:在GLES2中使用VBO和VAO对象,已经简单vs,ps绘制一个三角形。 1. 初始化操作代码,创建VBO、VAO,编译和链接shader program。 2. 使用之前创建好的VAO 和 shader program 在每帧绘制一个带颜色的三角形。 阅读全文
posted @ 2017-01-24 17:20 VZXM 阅读(768) 评论(0) 推荐(0)
摘要:You can use the #version command as the first line of your shader to specify GLSL version: #version 120 void main() { gl_FragColor = vec4(1.0); } GLSL 阅读全文
posted @ 2017-01-22 02:32 VZXM 阅读(3078) 评论(0) 推荐(0)