GLSL Frag Shader

Anything about development not directly related to libgdx, e.g. OpenGL, Android APIs etc.

Re: GLSL Frag Shader

Postby xinaes » Sat Sep 20, 2014 10:13 am

You're comparing to an exact RGB value, but the value you're reading from texture2D may be subject to bilinear interpolation giving intermediate values as a result of the texture filters you have setup and texture coordinates that are not perfectly aligned to the centre of the texels.
xinaes
 
Posts: 37
Joined: Mon Aug 04, 2014 5:51 pm

Return to General Development

Who is online

Users browsing this forum: No registered users and 1 guest