Skip to content

Commit

Permalink
Merge pull request #4 from camnewnham/unity-use-edgebreaker
Browse files Browse the repository at this point in the history
default to edgebreaker encoding
  • Loading branch information
atteneder authored Apr 29, 2022
2 parents 427fc7e + ac090b4 commit d8f24e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/draco/unity/draco_unity_enc_plugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ namespace draco {

if (preserveTriangleOrder) {
dracoEncoder.SetEncodingMethod(draco::MESH_SEQUENTIAL_ENCODING);
} else {
dracoEncoder.SetEncodingMethod(draco::MESH_EDGEBREAKER_ENCODING);
}

auto encoderStatus = dracoEncoder.EncodeMeshToBuffer(encoder->mesh, &encoder->encoderBuffer);
Expand Down

0 comments on commit d8f24e3

Please sign in to comment.