mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-08 11:38:08 +03:00
Merge branch 'master' into zone_count_in_level_file
This commit is contained in:
commit
db090d1cd2
1 changed files with 4 additions and 1 deletions
|
@ -1934,7 +1934,10 @@ namespace TEN::Renderer
|
||||||
int meshIndex = Objects[ID_CAUSTICS_TEXTURES].meshIndex;
|
int meshIndex = Objects[ID_CAUSTICS_TEXTURES].meshIndex;
|
||||||
int causticsFrame = nmeshes ? meshIndex + ((GlobalCounter) % nmeshes) : 0;
|
int causticsFrame = nmeshes ? meshIndex + ((GlobalCounter) % nmeshes) : 0;
|
||||||
|
|
||||||
BindTexture(TEXTURE_CAUSTICS, m_sprites[causticsFrame].Texture, SAMPLER_NONE);
|
if (m_sprites.size() > causticsFrame)
|
||||||
|
{
|
||||||
|
BindTexture(TEXTURE_CAUSTICS, m_sprites[causticsFrame].Texture, SAMPLER_NONE);
|
||||||
|
}
|
||||||
|
|
||||||
// Set shadow map data
|
// Set shadow map data
|
||||||
if (shadowLight != nullptr)
|
if (shadowLight != nullptr)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue