aboutsummaryrefslogtreecommitdiff
path: root/src/models.c
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2016-05-09 01:18:46 +0200
committerRay <raysan5@gmail.com>2016-05-09 01:18:46 +0200
commitdc4d5dabcdf8f35f32acb9c5b48a24b1141c460f (patch)
treea5993b04905fc7d474f3eac3a764a61f0a06b4f8 /src/models.c
parentf7d4951165e8bece5ae58cd4c92b08e4f29cbef7 (diff)
downloadraylib-dc4d5dabcdf8f35f32acb9c5b48a24b1141c460f.tar.gz
raylib-dc4d5dabcdf8f35f32acb9c5b48a24b1141c460f.zip
Added MTL loading info
Diffstat (limited to 'src/models.c')
-rw-r--r--src/models.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/models.c b/src/models.c
index ee04b449..7b6deb5c 100644
--- a/src/models.c
+++ b/src/models.c
@@ -2001,7 +2001,26 @@ static Material LoadMTL(const char *fileName)
{
Material material = { 0 };
- // TODO: Load mtl file
+ // TODO: Load mtl file (multiple variations of .mtl format)
+ /*
+ newmtl string Material newmtl (material name). Begins a new material description.
+ Ka float float float Ambient color Ka (red) (green) (blue)
+ Kd float float float Diffuse color Kd (red) (green) (blue)
+ Ks float float float Specular color Ks (red) (green) (blue)
+ Ke float float float Emmisive color
+ d float Tr float Dissolve factor. Transparency Tr (alpha). d is inverse of Tr
+ Ns int Shininess Ns (specular power). Ranges from 0 to 1000. Specular exponent.
+ Ni int Refraction index.
+ illum int Illumination model illum (1 / 2); 1 if specular disabled, 2 if specular enabled (lambertian model)
+ map_Kd string Texture map_Kd (filename)
+ map_Kd string Diffuse color texture map.
+ map_Ks string Specular color texture map.
+ map_Ka string Ambient color texture map.
+ map_Bump string Bump texture map. Alternative: bump string / map_bump string
+ map_d string Opacity texture map.
+ disp string Displacement map
+ refl Reflection type and map
+ */
char dataType;
char comments[200];