Skip to content

Commit

Permalink
Fixed wrap mode of exported texture . (#544)
Browse files Browse the repository at this point in the history
  • Loading branch information
zl3388 authored and mhochk committed Jan 10, 2020
1 parent eaf628b commit e89e2d1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1955,8 +1955,8 @@ public SamplerId GetSamplerId(GLTFRoot root, Texture textureObj)
|| textureObj.filterMode == FilterMode.Trilinear && root.Samplers[i].MinFilter == MinFilterMode.LinearMipmapLinear;

bool wrapMatched = textureObj.wrapMode == TextureWrapMode.Clamp && root.Samplers[i].WrapS == WrapMode.ClampToEdge
|| textureObj.wrapMode == TextureWrapMode.Repeat && root.Samplers[i].WrapS != WrapMode.Repeat
|| textureObj.wrapMode == TextureWrapMode.Mirror && root.Samplers[i].WrapS != WrapMode.MirroredRepeat;
|| textureObj.wrapMode == TextureWrapMode.Repeat && root.Samplers[i].WrapS == WrapMode.Repeat
|| textureObj.wrapMode == TextureWrapMode.Mirror && root.Samplers[i].WrapS == WrapMode.MirroredRepeat;

if (filterMatched && wrapMatched)
{
Expand Down

0 comments on commit e89e2d1

Please sign in to comment.