vange-rs
vange-rs copied to clipboard
Конвертация obj в мир
Сделать конвертер который тупо берет 1 или 2 самых верхних слоя а все остальное игнорирует и проверить что получится.
Rough plan:
- game config lists objects and their positions
- on loading, the renderer fires a job for each object
- load the OBJ and determine the 2D coordinate range where it applies
- create 2 depth textures and copy the level0 into the first one
- object with its back-faces only is rendered into this depth
- depth is copied into the other texture
- object with its front faces only is rendered into the depth
- both depths are requested for readback to CPU
- results get written back to level data