Object turns black when applying a material

Your normals are wrong. You are taking the cross product of DDY and DDY.
You need the cross product of DDX and DDY to determine world space normals.

2 Likes