Merge pull request #279 from saturday06/fix/typo_texture

Fix typo (TextureType)
This commit is contained in:
hiroj 2019-06-25 20:46:41 +09:00 committed by GitHub
commit b8273cb430
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View File

@ -15,7 +15,7 @@ namespace UniGLTF
public interface IglTFTextureinfo
{
glTFTextureTypes TextreType { get; }
glTFTextureTypes TextureType { get; }
}
[Serializable]
@ -37,14 +37,14 @@ namespace UniGLTF
f.KeyValue(() => texCoord);
}
public abstract glTFTextureTypes TextreType { get; }
public abstract glTFTextureTypes TextureType { get; }
}
[Serializable]
public class glTFMaterialBaseColorTextureInfo : glTFTextureInfo
{
public override glTFTextureTypes TextreType
public override glTFTextureTypes TextureType
{
get { return glTFTextureTypes.BaseColor; }
}
@ -53,7 +53,7 @@ namespace UniGLTF
[Serializable]
public class glTFMaterialMetallicRoughnessTextureInfo : glTFTextureInfo
{
public override glTFTextureTypes TextreType
public override glTFTextureTypes TextureType
{
get { return glTFTextureTypes.Metallic; }
}
@ -70,7 +70,7 @@ namespace UniGLTF
base.SerializeMembers(f);
}
public override glTFTextureTypes TextreType
public override glTFTextureTypes TextureType
{
get { return glTFTextureTypes.Normal; }
}
@ -88,7 +88,7 @@ namespace UniGLTF
base.SerializeMembers(f);
}
public override glTFTextureTypes TextreType
public override glTFTextureTypes TextureType
{
get { return glTFTextureTypes.Occlusion; }
}
@ -97,7 +97,7 @@ namespace UniGLTF
[Serializable]
public class glTFMaterialEmissiveTextureInfo : glTFTextureInfo
{
public override glTFTextureTypes TextreType
public override glTFTextureTypes TextureType
{
get { return glTFTextureTypes.Emissive; }
}

View File

@ -53,7 +53,7 @@ namespace UniGLTF
var textureInfo = material.GetTextures().FirstOrDefault(x => (x!=null) && x.index == textureIndex);
if (textureInfo != null)
{
return textureInfo.TextreType;
return textureInfo.TextureType;
}
}
return glTFTextureTypes.Unknown;