#depthFunc on (+x,-z) axis

1 messages · Page 1 of 1 (latest)

devout ridge
#

So I've made an entity with depthFunc and depthBias material properties to make it render through blocks. However, the entity doesn't get rendered if it's slightly far away from player towards the (+x,-z) axis. On other axes it gets rendered through walls as expected.
I've also noticed that the problem goes away when player switches to spectator mode.
Here's the material code-

"playeroutline:entity_alphatest": {
      "depthFunc": "Always",
      "depthBias": 1000000000
}

I'm not that knowledgeable when it comes down to materials, so any suggestions would be welcome and helpful! 🙏

tidal hearth
#

Pretty sure depthBias doesn't do anything on modern versions of the game, so you shouldn't have to use it

#

That might be an issue with entity being culled by blocks or smth like that, try adding update_bones_and_effects_offscreen to the RP entity