Quick query:
Is there a GLSL equivalent to the builtin HLSL ddx/ddy functions, defined as
‘Returns the partial derivative of x/y with respect to the screen-space x/y coordinate’
Cheers,
alx
Quick query:
Is there a GLSL equivalent to the builtin HLSL ddx/ddy functions, defined as
‘Returns the partial derivative of x/y with respect to the screen-space x/y coordinate’
Cheers,
alx
Look into dFdx() and dFdy(), that may be what you want.
Thanks HexCat, I’ll have a look at those.
alx
There is a fwidth§ function:
Returns the sum of the absolute derivative in x and y using local differencing for the input argument p, i.e.:
return = abs(dFdx §) + abs(dFdy §);
This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.