Closed ghost closed 5 years ago
I'm using texture.png and it's not working...
You must configuration opengl for using alpha values
Thank you, but can you show me the code to do it?
Oh I mean the blocks are not showing all the pixels, and it turns out to be black in that part.
I think this should work glEnable(GL_BLEND) glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)
(for example past this code in the setup() function)
I'll try that
It worked!
Thank you!
Weird.
I think I should add something called depth test I guess
Oh I just didn't disable the hide block surface of these block
I'll fix that
There may be also another bug that translucent blocks 2 Or More Blocks apart will disable rendering the block behind another
Yeah, I notice that.
There may be also another bug that translucent blocks 2 Or More Blocks apart will disable rendering the block behind another
Some blocks displayed after the translucent block will not show behind it
But that also mean if I display the translucent block after the full blocks, there'll still problems between translucent blocks.
One part (normal behind transparent) can be fixed by using separated batches one for alpha textures and one for non-alpha, for the other I have no clue how to fix it
ok
Maybe something to do with texture picture format?