示例#1
0
 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));
 }