public CubemapTextureImporter(Func <int, TextureItem> textureGetter, CubemapCompressionType compressionType) { _textureGetter = textureGetter; CompressionType = compressionType; _importFromDLdrShader = Shader.Find("Hidden/UniVCI/CubemapConversion/ImportFromDLdr"); _importFromRgbmShader = Shader.Find("Hidden/UniVCI/CubemapConversion/ImportFromRgbm"); }
public static string ConvertCubemapCompressionMode(CubemapCompressionType type) { switch (type) { case CubemapCompressionType.Raw: return(CubemapCompressionModeRaw); case CubemapCompressionType.DoubleLdr: return(CubemapCompressionModeDoubleLdr); case CubemapCompressionType.Rgbm: return(CubemapCompressionModeRgbm); default: throw new ArgumentOutOfRangeException(nameof(type), type, null); } }