Merge pull request #970 from Santarh/throwTeim

Throw not supported texture types
This commit is contained in:
ousttrue 2021-05-24 17:00:44 +09:00 committed by GitHub
commit bd3209cc1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,18 +43,8 @@ namespace VRMShaders
// A texture has "Normal map" TextureType is ALWAYS converted into normalized normal pixel by Unity.
// So we must copy it.
return false;
case TextureImporterType.GUI:
case TextureImporterType.Sprite:
case TextureImporterType.Cursor:
case TextureImporterType.Cubemap:
case TextureImporterType.Cookie:
case TextureImporterType.Lightmap:
case TextureImporterType.HDRI:
case TextureImporterType.Advanced:
case TextureImporterType.SingleChannel:
// Not Supported TextureImporterType
return false;
default:
// Not Supported TextureImporterType
throw new ArgumentOutOfRangeException();
}