コード例 #1
0
ファイル: GltfPBRMaterial.cs プロジェクト: mcwind169/UniVRM
 public static (SubAssetKey, TextureImportParam Param) NormalTexture(GltfParser parser, glTFMaterial src)
 {
     var(offset, scale) = GltfMaterialImporter.GetTextureOffsetAndScale(src.normalTexture);
     return(GltfTextureImporter.CreateNormal(parser, src.normalTexture.index, offset, scale));
 }
コード例 #2
0
 public static (SubAssetKey, TextureDescriptor) NormalTexture(GltfData data, glTFMaterial src)
 {
     var(offset, scale) = GltfTextureImporter.GetTextureOffsetAndScale(src.normalTexture);
     return(GltfTextureImporter.CreateNormal(data, src.normalTexture.index, offset, scale));
 }