This was caused by sign(cubevec.xy) returning 0.0 when one component was 0. Thus making the resulting component component 0.0 instead of 0.0.
This was caused by sign(cubevec.xy) returning 0.0 when one component was 0. Thus making the resulting component component 0.0 instead of 0.0.