美文网首页
Vertex & Fragment Shader (一)

Vertex & Fragment Shader (一)

作者: River_Wu | 来源:发表于2017-09-16 18:46 被阅读0次

必须有pass通道。

必须包含顶点程序和片段程序。

片段程序必须输出颜色。

也可以从vertex程序中直接输出颜色,frag程序的col参数,要能够输出,所以把关键字out改为inout,既是输入,又是输出。

相关文章

网友评论

      本文标题:Vertex & Fragment Shader (一)

      本文链接:https://www.haomeiwen.com/subject/fsnlsxtx.html