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.
GameDev.net uses cookies to ensure you have the best experience on our platform. Learn more