秀丽钢笔

文章
5
资源
0
加入时间
4年2月15天

OpenGL如何处理多个纹理

在主程序中我们先设置3个采样器名称 pbrShader.use(); pbrShader.setInt("irradianceMap", 0); pbrShader.setInt("prefilterMap", 1); pbrShader.setInt("brdfLUT", 2); 其中setint是封装函数: void setInt(const std::string &name,