Fix noisemap 3d

Value is ok. But there is too much conditional branch than needed.