Depth Texture #8626
Unanswered
DrAklinger
asked this question in
Q&A
Depth Texture
#8626
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all,
first of, great engine! So far, I have a lot of fun using it and it seems already to be in a quite powerful state :)
So, here goes my question: Is it currently possible to use a depth texture with a TextureAtlas? What I want to do is that I have a sprite of a building in game which shall consist out of multiple parts (each their own image). To z (depth) order them on a pixel-base, I want to use a depth texture.
I already followed one of the shader examples and got it to work with a custom material (aka some .wsgl shader) but it doesn't seem that TextureAtlases support custom materials. In the attachment you can see the result (some frame + a roll which shall then move up/down).
Has anybody some insight on how this could already be done or if this is some open feature?
Cheers,
Aklinger
Beta Was this translation helpful? Give feedback.
All reactions