diff --git a/interface/src/starfield/renderer/Tiling.h b/interface/src/starfield/renderer/Tiling.h index 7edbfd6656..53b17a9844 100755 --- a/interface/src/starfield/renderer/Tiling.h +++ b/interface/src/starfield/renderer/Tiling.h @@ -12,10 +12,10 @@ #include "starfield/Config.h" namespace starfield { - + const float LOG2 = 1.4426950408889634; + class Tiling { public: - Tiling(unsigned tileResolution) : _tileResolution(tileResolution), _rcpSlice(tileResolution / Radians::twicePi()) { _nBits = ceil(log(getTileCount()) * LOG2); } @@ -39,10 +39,7 @@ namespace starfield { unsigned _tileResolution; float _rcpSlice; unsigned _nBits; - - const float LOG2 = 1.4426950408889634; }; - } #endif