This commit is contained in:
Бранимир Караџић 2022-08-25 21:12:09 -07:00
parent 72cbe83275
commit ed8d6da5f4

View File

@ -576,12 +576,11 @@ public:
if (bgfx::isValid(m_checkerboard) ) if (bgfx::isValid(m_checkerboard) )
{ {
static int64_t timeOffset = bx::getHPCounter(); static int64_t timeOffset = bx::getHPCounter();
const float time = m_animate const float time = float( (bx::getHPCounter()-timeOffset)/double(bx::getHPFrequency() ) );
? float( (bx::getHPCounter()-timeOffset)/double(bx::getHPFrequency() ) ) const float animate = float(m_animate)*0.5f;
: 0.0f const float xx = bx::sin(time * 0.37f) * animate;
; const float yy = bx::cos(time * 0.43f) * animate;
const float xx = bx::sin(time * 0.17f);
const float yy = bx::cos(time * 0.13f);
const float uTile = bx::max(1.0f, previewSize.x / kCheckerboardSize); const float uTile = bx::max(1.0f, previewSize.x / kCheckerboardSize);
const float vTile = bx::max(1.0f, previewSize.y / kCheckerboardSize); const float vTile = bx::max(1.0f, previewSize.y / kCheckerboardSize);