block-mesh-rs icon indicating copy to clipboard operation
block-mesh-rs copied to clipboard

Allow the voxel that produced an UnorientedUnitQuad to be preserved

Open parzivale opened this issue 9 months ago • 3 comments

Basically what the title says. The objective behind this is to allow custom texture coords to be generated depending on the type/data of the original voxel

parzivale avatar May 09 '24 15:05 parzivale

Why is this necessary? You already have the coordinates of the voxel on the quad, so you can easily access it.

bonsairobo avatar May 10 '24 14:05 bonsairobo

Well for my use case I want to implement a single texture atlas for a chunk mesh with per voxel texture coordinates, but without information on what the original voxel is I cannot generate the correct texture atlas coordinates.

parzivale avatar May 11 '24 13:05 parzivale

but without information on what the original voxel

But you do have this information. It's just the voxel from the array you provided to the meshing function.

bonsairobo avatar May 12 '24 07:05 bonsairobo