Texture in OpenGL ES 2 looks pixelated

Member
Posts: 25
Joined: 2011.08
Post: #12
(Aug 30, 2011 09:22 AM)OneSadCookie Wrote:  ONE, ONE_MINUS_SRC_ALPHA is a premultiplied blend, but your vertex colors are not premultiplied.

Code:
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?
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Texture in OpenGL ES 2 looks pixelated - vunterslaush - Aug 30, 2011 09:35 AM
Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  OpenGL ES Texture Compression ajrs84 9 488 May 7, 2013 03:36 PM
Last Post: ajrs84
  OpenGL ES Texture Masking airfire 5 11,461 Nov 14, 2012 09:36 AM
Last Post: toanNguyen
  OpenGL ES Texture Masking dalasjoe sin 0 3,142 Apr 13, 2012 12:17 AM
Last Post: dalasjoe sin
  Lighting and changing texture colors in OpenGL agreendev 2 6,121 Aug 13, 2010 03:47 PM
Last Post: agreendev
  OpenGL ES Texture Problems jhbau1000 1 4,422 Jul 12, 2010 05:57 AM
Last Post: Kezhaya