Inspirateur / binary-greedy-meshing

A port of https://github.com/cgerikj/binary-greedy-meshing to Rust.
https://crates.io/crates/binary-greedy-meshing
MIT License
4 stars 0 forks source link

Bake Ambient Occlusion ? #2

Open Inspirateur opened 2 months ago

Inspirateur commented 2 months ago

The v.1.0.0 branch of the C library I've ported bakes Ambient Occlusion in the vertices.

However, the new version only returns quads, because that's more efficient with instancing & batching and you can deduce the vertices from the quad data anyway. We could store an AO value for each quad, it should only take 4 bits (1/0 for each corner).

Inspirateur commented 2 days ago

Actually unsure if it is a good idea because it does cost a lot in meshing time and we might have it for cheaper with screen space techniques