Пример #1
0
 public static TextureImportParam NormalTexture(GltfParser parser, glTFMaterial src)
 {
     var(offset, scale) = MaterialFactory.GetTextureOffsetAndScale(src.normalTexture);
     return(TextureFactory.CreateNormal(parser, src.normalTexture.index, offset, scale));
 }
Пример #2
0
 public static TextureImportParam NormalTexture(GltfParser parser, glTFMaterial src)
 {
     return(TextureFactory.CreateNormal(parser, src.normalTexture.index));
 }