入门shader,并实现normal mapping on earth

shader 试运行在可编程gpu内的小程序
使用shader开始要使用两个着色器
从vertex到fragment
vertex 输入的是顶点信息,在中间传递最后在fragment输出color
在新的version中,也可以使用两者中间的 geometry shader.
The geometry shader can receive primitives with multiple vertices as input, each with its own attribute values.

猜你喜欢

转载自www.cnblogs.com/venusian/p/10166664.html
今日推荐