I’m trying to port an OpenGL project to Metal, and I’m seeing a discrepancy in the texture values I get from the sampler. The Metal values are a little more than half the value of the OpenGL values.
Here’s an image from the OpenGL version (ignore the green, I’m just dealing with the fonts right now):
And here’s the Metal version:
This is just returning the straight value from the texture sampler in the fragment shader, there’s no lighting or anything.
Here is the actual texture image shown by the texture mapper, and in Photoshop. The values coming straight out of the sampler are reduced when compared to the OpenGL version, which is what makes me think it has to do with the textureLoader maybe?
I don’t have a lot of experience with Metal yet, or with OpenGL textures really, so I am not sure what could cause such a change. I tried fiddling around with the linear/nearest settings on the sampler, but I don’t think that is the problem.
Anyone know what else could cause this?