Fix shader compilation failure in IE11.

Fixes #2358

A function needed only in 2D mode was not being included in 3D.  Other
browsers were ok with this because the functions that called the missing
one were never called, but IE had a problem with it.

This change includes the function in 3D as well, which is consistent with Cesium's behavior before #2346.