Notifications
Clear all

[Closed] SDK: How to get dPdx and dPdy

I’m using XYZGen in my maps and it returns me the point in the map space and dervivatives of this point in XYZ. However I’d like to get dPdx and dPdy so I could supersample this point in space. With just XYZ derivatives I can’t really properly do it for 3D texture. The ShadeContext does have dPdx and dPdy nicely, however with the transformations XYZGen does, these usually aren’t correct any more.

So is there any way to obtain dPdx and dPdy other than rewriting the XYZGen from the ground up myself?

  • Jerry