コード例 #1
0
 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");
 }
コード例 #2
0
ファイル: glTFCubemapTexture.cs プロジェクト: oocytanb/VCI
        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);
            }
        }