Original Post
I use directx9, i can't understand the difference of tex2Dgrad and tex2D. Anyone can tell me??
float dx = ddx(textureUV.x);float dy = ddy(textureUV.y); finalColor = tex2Dgrad(defaultTexsampler, textureUV, dx, dy);float2 texDdx = ddx(texUV);float2 texDdy = ddy(texUV);float4 colour = tex2Dgrad(texSampler, texUV, texDdx, texDdy);
This topic has been locked by a moderator. New replies are not allowed.
With your permission, GameDev.net uses analytics cookies to understand how people use the platform. You can accept analytics or continue with necessary cookies only. Learn more