uniform sampler2D,将一个纹理添加片元着色器中. uniform sampler2D colorMap; 复制代码. 同时我们使用GLSL内建的texture函数来采样纹理的颜色值.
確定! 回上一頁