mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-25 20:02:40 +01:00
Fix area indicator rendering.
* Increase alpha value from 1/255. * Don't clear tick data unless the game is updating.
This commit is contained in:
parent
1fe572a7cc
commit
8e82604fc3
@ -947,7 +947,7 @@ void GameRenderer::renderAreaIndicator(const AreaIndicatorInfo* info)
|
|||||||
Renderer::DrawParameters dp;
|
Renderer::DrawParameters dp;
|
||||||
dp.textures = {data->findTexture("cloud1")->getName()};
|
dp.textures = {data->findTexture("cloud1")->getName()};
|
||||||
dp.ambient = 1.f;
|
dp.ambient = 1.f;
|
||||||
dp.colour = glm::u8vec4(50, 100, 255, 1);
|
dp.colour = glm::u8vec4(50, 100, 255, 128);
|
||||||
dp.start = 0;
|
dp.start = 0;
|
||||||
dp.count = cylinderGeometry.getCount();
|
dp.count = cylinderGeometry.getCount();
|
||||||
dp.diffuse = 1.f;
|
dp.diffuse = 1.f;
|
||||||
|
@ -331,8 +331,6 @@ int RWGame::run()
|
|||||||
|
|
||||||
void RWGame::tick(float dt)
|
void RWGame::tick(float dt)
|
||||||
{
|
{
|
||||||
// Clear out any per-tick state.
|
|
||||||
world->clearTickData();
|
|
||||||
// Process the Engine's background work.
|
// Process the Engine's background work.
|
||||||
world->_work->update();
|
world->_work->update();
|
||||||
|
|
||||||
@ -340,6 +338,9 @@ void RWGame::tick(float dt)
|
|||||||
|
|
||||||
static float clockAccumulator = 0.f;
|
static float clockAccumulator = 0.f;
|
||||||
if ( currState->shouldWorldUpdate() ) {
|
if ( currState->shouldWorldUpdate() ) {
|
||||||
|
// Clear out any per-tick state.
|
||||||
|
world->clearTickData();
|
||||||
|
|
||||||
state->gameTime += dt;
|
state->gameTime += dt;
|
||||||
|
|
||||||
clockAccumulator += dt;
|
clockAccumulator += dt;
|
||||||
|
Loading…
Reference in New Issue
Block a user