GameDevTecnico / cubos

A still very barebones game engine focused on voxels and data-oriented programming
https://gamedevtecnico.github.io/cubos/
MIT License
82 stars 22 forks source link

Add transparent voxel rendering support #1220

Open RiscadoA opened 1 month ago

RiscadoA commented 1 month ago

Problem

Currently we can't make transparent voxels!

Solution

We need to generate two meshes from partially transparent voxel objects. One for the transparent vertices, another for the opaque ones. Then, we need to a forward rendering pass where all transparent objects are drawn, after applying lighting.