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

VRM1.0 MToon の Texture をすべて Import できる #934

Merged
merged 9 commits into from
May 10, 2021

Conversation

Santarh
Copy link
Contributor

@Santarh Santarh commented May 7, 2021

  • UniGLTF が単なる Linear Texture を Import できるようにした
  • 過去の不要な TextureInfo 定義を remove
  • GetTextureOffsetAndScale を transform ext で呼び出せるようにした
  • VRM1.0 Import 時に MToon Material が参照するテクスチャをすべて Enumerate する

@Santarh Santarh requested a review from ousttrue May 7, 2021 13:07
@@ -42,6 +42,18 @@ public static (SubAssetKey, TextureImportParam Param) CreateSRGB(GltfParser pars
var param = new TextureImportParam(name, gltfImage.GetExt(), gltfImage.uri, offset, scale, sampler, TextureImportTypes.sRGB, default, default, getTextureBytesAsync, default, default, default, default, default);
return (key, param);
}

Copy link
Contributor

Choose a reason for hiding this comment

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

glTF の Linear は、metallic_roughness_occlusion もしくは normal として扱うので無かった。

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.

よさそう

@ousttrue ousttrue merged commit 6ce78db into vrm-c:master May 10, 2021
@ousttrue ousttrue added the 1.0 label May 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants