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)); }
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)); }