Skip to content

Commit

Permalink
Merge pull request #140 from CesiumGS/gltf-sampler
Browse files Browse the repository at this point in the history
Use wrap mode and filtering specified by glTF sampler
  • Loading branch information
kring authored Nov 30, 2022
2 parents 38740d1 + 77498f9 commit 51f2650
Show file tree
Hide file tree
Showing 5 changed files with 878 additions and 440 deletions.
4 changes: 4 additions & 0 deletions Runtime/ConfigureReinterop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ public void ExposeToCPP()
texture2D.anisoLevel = 16;
texture2D.filterMode = FilterMode.Trilinear;
Texture texture = texture2D;
texture.wrapModeU = texture.wrapModeU;
texture.wrapModeV = texture.wrapModeV;
texture.wrapModeW = texture.wrapModeW;


Mesh mesh = new Mesh();
Mesh[] meshes = new[] { mesh };
Expand Down
Loading

0 comments on commit 51f2650

Please sign in to comment.