Skip to content

Commit

Permalink
use local transform of model
Browse files Browse the repository at this point in the history
  • Loading branch information
bertt committed Jun 11, 2024
1 parent b3dfeef commit c5522eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TileHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ private static byte[] GetGpuGlb(object model, List<Instance> positions, bool Use
gltf.LogicalNodes[0].AddInstanceFeatureIds(featureId0);

// todo: use exisiting transformation...
gltf.LogicalNodes[0].LocalTransform = Matrix4x4.CreateTranslation(translation);
gltf.LogicalNodes[0].LocalTransform *= Matrix4x4.CreateTranslation(translation);

var bytes = gltf.WriteGLB().Array;
return bytes;
Expand Down

0 comments on commit c5522eb

Please sign in to comment.