Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring Serializing Textures #961

Merged
merged 1 commit into from
May 20, 2021

Conversation

Santarh
Copy link
Contributor

@Santarh Santarh commented May 20, 2021

Texture を具体的に byte[] に切り出すメソッド群を切り出して ITextureSerializer を定義。
EditorTextureSerializerRuntimeTextureSerializer を定義。

@Santarh Santarh requested a review from ousttrue May 20, 2021 09:25
using UnityEditor;
using UnityEngine;
using ColorSpace = UniGLTF.ColorSpace;

namespace VRMShaders
{
public static class AssetTextureUtil
public sealed class EditorTextureSerializer : ITextureSerializer
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EditorTextureSerializer

Copy link
Contributor

@ousttrue ousttrue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

interface

@ousttrue ousttrue merged commit c1930ca into vrm-c:master May 20, 2021
using UnityEngine;

namespace UniGLTF
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

関数が2つになったので、Delegate から interface に拡張

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants