texture2D

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了texture2D相关的知识,希望对你有一定的参考价值。

参考技术A

vec4 texture2D(sampler2D sampler, vec2 coord)
The texture2D function returns a texel, i.e. the (color) value of the texture for the given coordinates.
第一个参数代表图片纹理,第二个参数代表纹理坐标点,通过GLSL的内建函数texture2D来获取对应位置纹理的颜色RGBA值

以上是关于texture2D的主要内容,如果未能解决你的问题,请参考以下文章

Unity保存图片到本地

Unity保存图片到本地