opengl GLSL宏加載shader source

在opengl shader的編寫過程當中,經常使用的兩種方式是:函數 將shader 定義爲字符串,而後使用glShaderSource加載 static const char *vs = "attribute vec4 vertexIn;\n" "attribute vec2 textureIn;\n" "varying vec2 textureOut;\n" "void ma
相關文章
相關標籤/搜索