gl_fwidth (screenspace)


  • Where to find it:


    • NodeGraph / Right Mouse Click / Add Nodes / Math / Extension Pack / F /






WARNING

Screenspace nodes work based on your current camera position. 
They are not stable for baking textures without additional opengl operations.

A stable version for baking is available in form of the "gl_fwidth (uv)" Node



Description


 fwidth returns the sum of the absolute derivatives in x and y using local differencing for the input argument p. 


 fwidth is equivalent to abs(dFdx(p)) + abs(dFdy(p))

OpenGl Reference


https://registry.khronos.org/OpenGL-Refpages/gl4/html/fwidth.xhtml


Node Ports


  • F

Specifies the expression of which to take the partial derivative.


Node Outputs


  • Output

Return the sum of the absolute value of derivatives in x and y