NME Derivative Node Causing Compilation Error

Using a derivative node to distort UV’s and sampling a texture with those updated UV’s is causing a compilation error. If you view the UV’s directly they all appear to be valid and all compiles fine.


You have to help the editor a bit to have the derivatives operate in the fragment shader instead of the vertex shader by setting the target property of the “Add” to “Fragment”:



Thank you so much! I had no idea that option was there.