Please clamp p.x, p.y and p.z to a maximum of 255