工具
HBuilder
webgl库
经过证明,此次实验只用到webgl-utils库和initShaders库
结构总览
任务
以下效果均为嵌套html实现,并非直接引用图片
任务a. 修改三角形的显示颜色,比如改成蓝色或绿色
任务b. 绘制一个四边形,颜色可任意设置为除红色之外的颜色
任务c. 同时绘制一个三角形和一个四边形,将两者设置为相同的颜色,要求同上
任务d. 将任务c中的三角形和四边形设置为不同的颜色
任务e. 绘制如下图所示效果的三角形,三角形大小可变,颜色按照示例
If you like this blog or find it useful for you, you are welcome to comment on it. You are also welcome to share this blog, so that more people can participate in it. If the images used in the blog infringe your copyright, please contact the author to delete them. Thank you !