Texture in OpenGL ES 2 looks pixelated
(Aug 30, 2011 09:22 AM)OneSadCookie Wrote: ONE, ONE_MINUS_SRC_ALPHA is a premultiplied blend, but your vertex colors are not premultiplied.
colorVarying = vec4(color.rgb * color.a, color.a);
I added that at the vertex shader and it worked! Thanks!
Just so that I'll understand- Is that ok? When I'm loading the textures I'm premultiplying the alpha, so in order to make everything work that line that you wrote is the standard thing to do? Or I'm doing something wrong and I should change it?
|Messages In This Thread|
RE: Texture in OpenGL ES 2 looks pixelated - vunterslaush - Aug 30, 2011 09:35 AM
Possibly Related Threads...
|OpenGL ES Texture Compression||ajrs84||9||2,510||
May 7, 2013 03:36 PM
Last Post: ajrs84
|OpenGL ES Texture Masking||airfire||5||12,825||
Nov 14, 2012 09:36 AM
Last Post: toanNguyen
|OpenGL ES Texture Masking||dalasjoe sin||0||3,494||
Apr 13, 2012 12:17 AM
Last Post: dalasjoe sin
|Lighting and changing texture colors in OpenGL||agreendev||2||6,919||
Aug 13, 2010 03:47 PM
Last Post: agreendev
|OpenGL ES Texture Problems||jhbau1000||1||4,836||
Jul 12, 2010 05:57 AM
Last Post: Kezhaya