|
|
|
return (((((((dFdx(testInputs.x) == expected.x && dFdx(testInputs.xy) == expected.xy) && dFdx(testInputs.xyz) == expected.xyz) && dFdx(testInputs) == expected) && sign(fwidth(coords.xx)) == vec2(1.0, 1.0)) && sign(fwidth(vec2(coords.x, 1.0))) == vec2(1.0, 0.0)) && sign(fwidth(coords.yy)) == vec2(1.0, 1.0)) && sign(fwidth(vec2(0.0, coords.y))) == vec2(0.0, 1.0)) && sign(fwidth(coords)) == vec2(1.0, 1.0) ? colorGreen : colorRed;
|