Using GL_SRC1_COLOR in glBlendFunc()
问题 I am using glBindFragDataLocationIndexed() and writing two colors in fragment shader. Following is my code : glBindFragDataLocationIndexed(shader_data.psId, 0, 0, "Frag_Out_Color0"); glBindFragDataLocationIndexed(shader_data.psId, 0, 1, "Frag_Out_Color1"); glActiveTexture ( GL_TEXTURE0 ); LoadTexture(texture1); glBindTexture ( GL_TEXTURE_2D, tex_id1); glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA,width, height, 0, GL_RGBA,GL_UNSIGNED_BYTE, texture1_data); glActiveTexture ( GL_TEXTURE1 );