Is there a specific reason to not support the fog for the SpriteMap
?
Do it need to be enabled in some way?
spriteManagerTrees.fogEnabled = true
Mmmh…
Fog is -indeed- enabled on the tree objects and it works fine on them…
Actually, I put them in the PG just to make you better understand that the SpriteMap
object seems to not have fog support; is the only element that doesn’t change at all.
Anyway, I tried to place the fogEnabled
property as follow…
spriteSheet.fogEnabled = true;
background.fogEnabled = true;
levelBase.fogEnabled = true;
levelStage.fogEnabled = true;
… but nothing has changed.
Don’t know if it’s relevant but…
I noticed that sprites.fragment.fx
files contains…
// [...]
#include<fogFragmentDeclaration>
// [...]
#include<fogFragment>
// [...]
… while spriteMap.fragment.fx
file not.
Fog (and logarithmic depth) was not supported for sprite maps, this PR will fix it:
When the PR is merged, this PG will work as expected:
2 Likes