Updating FogExp2 with RGB color "breaks" fog

I’ve been using FogExp2 for fog in my day/night cycle for my game.
To add fog in the morning, I changed the fog density according to the time of day, which works normally.
I tried updating the color of the fog with the RGB color white (rgb(255,255,255)), which displays an incredibly bright fog that appears to be extremely thick. However, this does not happen when updating THREE.Color to the hexadecimal version of white (0xffffff).
Is this a bug?

With scene.fog.color.setRGB(255,255,255)

With 0xffffff

new THREE.Color( 255.0, 255.0, 255.0 ) is not the same as new THREE.Color( 0xffffff ). The RGB values are expected to be in the range of [0, 1] so instead you should use new THREE.Color( 1.0, 1.0, 1.0 ).

Is that the issue?

Woops - I used scene.fog.color.setRGB(255,255,255)