misc:
replace many float3(0|1,0|1,0|1) literals with named constants (Up|...|Vector)
replace various #SIGN defines and local x*2-1 instances by inline template