Lines Matching refs:lodBounds
63 UVec2 calcLevelBounds (const Vec2& lodBounds,
67 DE_ASSERT(lodBounds[0] <= lodBounds[1]);
76 if (lodBounds[0] <= 0.5f)
80 else if (lodBounds[0] < q + 0.5f)
82 levelBounds[0] = deCeilFloatToInt32(lodBounds[0] + 0.5f) - 1;
89 if (lodBounds[1] < 0.5f)
93 else if (lodBounds[1] < q + 0.5f)
95 levelBounds[1] = deFloorFloatToInt32(lodBounds[1] + 0.5f);
106 if (lodBounds[ndx] >= q)
112 levelBounds[ndx] = lodBounds[ndx] < 0.0f ? 0 : deFloorFloatToInt32(lodBounds[ndx]);
120 Vec2 calcLevelLodBounds (const Vec2& lodBounds, int level)
124 if (lodBounds[0] <= 0.0f)
126 levelLodBounds[0] = lodBounds[0];
130 levelLodBounds[0] = de::max(lodBounds[0], (float) level);
133 levelLodBounds[1] = de::min(lodBounds[1], (float) level + 1.0f);
275 Vec2 lodBounds;
298 lodBounds[ndx] = deFloatLog2(scaleMaxBounds[ndx]);
299 lodBounds[ndx] += lodBias;
300 lodBounds[ndx] = de::clamp(lodBounds[ndx], lodMin, lodMax);
303 return lodBounds;