I am trying to display an image in full window using two simple GLSL shaders:
Vertex Shader:
#version 330
layout (location = 0) in vec3 aPos;
layout (location = 1) in vec2 aTexCoord;
out vec3 ourColor;
out vec2 TexCoord;
void main()
{
TexCoord = aTexCoord;
gl_Position = vec4(aPos, 1.0);
}
and fragment shader:
#version 330
uniform sampler2D tex0; // loading the texture here
in vec3 TexCoord; // texture coordinates
out vec4 fColor; // fragment shader output
void main(){
fColor = texture2D(tex0,TexCoord);
}
In the OpenGL code, during OpenGL properties setting, I perform
glEnable(GL_MULTISAMPLE);
I read online that the OpenGL will ONLY perform Multisampling if the drivers support this.
Is there anyway in OpenGL we can confirm that the above call is working ? Or is there anyway we can find out if my machine graphics card supports this call ?