mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-08 20:08:53 -05:00
Merge pull request #970 from Santarh/throwTeim
Throw not supported texture types
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user