yjh1982
08-23-2010, 09:52 PM
texture and textureGrad have any diffrence?
because I found use texture and set GL_LINEAR have same effect.
I thinked texture no filter and textureGrad filter...
but since texture filter also,what mean is:
vec2 dPdx = dFdx( index );
vec2 dPdy = dFdy( index );
textureGrad(texID, index, dPdx, dPdy);?
because I found use texture and set GL_LINEAR have same effect.
I thinked texture no filter and textureGrad filter...
but since texture filter also,what mean is:
vec2 dPdx = dFdx( index );
vec2 dPdy = dFdy( index );
textureGrad(texID, index, dPdx, dPdy);?