mirror of
https://github.com/lubosz/overte.git
synced 2025-08-04 20:08:01 +02:00
Add explicit draco encoder options to FBXBaker
This commit is contained in:
parent
c445d914d7
commit
087a95a625
1 changed files with 9 additions and 0 deletions
|
@ -423,6 +423,15 @@ void FBXBaker::rewriteAndBakeSceneModels() {
|
||||||
}
|
}
|
||||||
|
|
||||||
draco::Encoder encoder;
|
draco::Encoder encoder;
|
||||||
|
|
||||||
|
encoder.SetAttributeQuantization(draco::GeometryAttribute::POSITION,
|
||||||
|
14);
|
||||||
|
encoder.SetAttributeQuantization(draco::GeometryAttribute::TEX_COORD,
|
||||||
|
12);
|
||||||
|
encoder.SetAttributeQuantization(draco::GeometryAttribute::NORMAL,
|
||||||
|
10);
|
||||||
|
encoder.SetSpeedOptions(0, 0);
|
||||||
|
|
||||||
draco::EncoderBuffer buffer;
|
draco::EncoderBuffer buffer;
|
||||||
encoder.EncodeMeshToBuffer(*dracoMesh, &buffer);
|
encoder.EncodeMeshToBuffer(*dracoMesh, &buffer);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue