Skip to content

Commit

Permalink
Center Voxel at origin 0,0,0
Browse files Browse the repository at this point in the history
  • Loading branch information
nkast committed Jun 9, 2021
1 parent 3e5f779 commit 144ba0b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Pipeline/VoxelImporters/VoxelModelImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private NodeContent VoxelProcess(VoxelContent voxel, ContentImporterContext cont
uint[] palette = voxel.Palette;

var scale = voxel.RealSize / voxel.GridSize;
Vector3 centerOffset = new Vector3(1f, 0f, 1f) * (voxel.RealSize / -2f);
Vector3 centerOffset = new Vector3(1f, 1f, 1f) * (voxel.RealSize / -2f);

var corner000 = new Point3(0, 0, 0);
var corner100 = new Point3(1, 0, 0);
Expand Down
Binary file not shown.
Binary file modified bin/Release/Windows/Aether.Content.Pipeline.VoxelImporters.dll
Binary file not shown.

0 comments on commit 144ba0b

Please sign in to comment.