mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-13 22:39:39 -05:00
ITextureExporter inherit IDisposable
update ITextureExporter interface
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace VRMShaders
|
||||
@@ -8,7 +8,7 @@ namespace VRMShaders
|
||||
///
|
||||
/// glTF 拡張で Texture の用途を増やす必要がある場合は、この interface を継承して実装すればよい。
|
||||
/// </summary>
|
||||
public interface ITextureExporter
|
||||
public interface ITextureExporter: IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// 指定の Texture を、 sRGB 色空間の値を持つ Texture に出力するように指示する。
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace VRMShaders
|
||||
/// glTF にエクスポートする変換方式を蓄えて index を確定させる。
|
||||
/// Exporter の最後で Export() でまとめて変換する。
|
||||
/// </summary>
|
||||
public sealed class TextureExporter : IDisposable, ITextureExporter
|
||||
public sealed class TextureExporter : ITextureExporter
|
||||
{
|
||||
private readonly ITextureSerializer _textureSerializer;
|
||||
private readonly List<TextureExportParam> _exportingList = new List<TextureExportParam>();
|
||||
|
||||
Reference in New Issue
Block a user