18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-24 11:59:14 +01:00

Merge branch 'master' into feat/renderers-cleanup

This commit is contained in:
2026-11-23 18:27:27 +01:00
70 changed files with 2865 additions and 378 deletions

View File

@@ -3395,6 +3395,8 @@ void opengl46_renderer::Bind_Material( material_handle const Material, TSubModel
return;
}
// the cache may have been marked stale by the python upload thread
opengl_texture::sync_unit_cache();
GLuint lastdiff = 0;
size_t i;
for (i = 0; i < gl::MAX_TEXTURES; i++)

View File

@@ -175,9 +175,9 @@ smoke_source::accumulate_spawns( double const Timedelta, bool const Onlydespawn
if( m_ownertype == owner_type::vehicle ) {
auto const &mover { *m_owner.vehicle->MoverParameters };
if( Global.AirTemperature <= 5.f || mover.dizel_heat.Ts < 45.f ) {
m_emitter.color = glm::vec3{ 128, 128, 128 };
}
// NOTE: the smoke keeps the colour of its template, cold engine or not. a grey for a cold engine was once meant
// here, but the line compared instead of assigning; made an assignment, it set 128 on the 0-1 scale of the
// emitter colour, so the smoke turned pure white, glowing at night, and never changed back
// a vehicle taken off the tracks (gone through a portal, or waiting in the pool of the road traffic) puffs no more,
// the particles it already let out fade away as usual
m_spawncount = (