Bad texture on model with different GPU
- by Pacha
I have some kind of distortion on the texture of my 3D model. It works perfectly well on an AMD GPU, but when testing on a integrated Intel HD graphics card it has a weird issue.
I don't have a problem with the rest of my entities as they are not scaled. The models with the problems are scaled, as my engine supports different sizes for the platforms.
I am using Ogre3D as rendering engine, and GLSL as shader language.
Vertex shader:
#version 120
varying vec2 UV;
void main()
{
UV = gl_MultiTexCoord0;
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
}
Fragment shader:
#version 120
varying vec2 UV;
uniform sampler2D diffuseMap;
void main(void)
{
gl_FragColor = texture(diffuseMap, UV);
}
Screenshot (the error is on the right and left side, the top and bottom part are rendered perfectly well):