Skip to content

Transparent textures support #8

@s1mplicityy

Description

@s1mplicityy

The engine appears to have no support for textures with transparent pixels. First they just displayed as black cubes. I got transparency to work by making a simple modification to the chunk shader and adding alpha support.
Now it causes huge glitches, culling blocks behind itself:

2024-08-27_12-59

Apparently, opaque and transparent blocks should be rendered separately and transparent blocks shouldn't affect depth. But I couldn't find a way to determine if a block being rendered is transparent. Is it possible to implement adequate transparency handling without significant changes to the entire rendering logic?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions