Why are dFdx/ddx and dFdy/ddy 2 dimension variables when quering a 2d texture?

前端 未结 2 1172
野性不改
野性不改 2021-02-10 05:38

I cannot seem to understand this, shouldn\'t the derivative/change along the U or V coordinate in a 2d texture/array be single dimension variable as we are checking it only alon

2条回答
  •  时光取名叫无心
    2021-02-10 06:22

    You are computing the derivative of a variable (such as the uv-coordinate of a texture) with respect to the screenspace in either the x or y direction. Or in other words you could say that the function answer the question: "what change will happend to this variable when I move one pixel to [the left]/[up]".

提交回复
热议问题