POW node does outputs wrong values for negative numbers

Hi, i have noticed that the POW node in the NME seems to output incorrect values for negative numbers.
( The OpenGL documentation of the Khronos Group indicates, that the result is undefined if x<0 , x=0 or y < or = 0)

Please let me know if my observation is correct and if so, if you plan to fix this.


The pow block is a straight equivalent of the pow function in glsl. It will suffer from the same limitations.

We won’t add anything to workaround those but I d advise to ensure your NME graph is preventing those situation with a clamp node for instance.

Doing it automatically would be detrimental to perf when you are sure of your data.

1 Like