Skip to content
Paul Gerarts edited this page Jun 26, 2017 · 1 revision

This replaces pull request #61

Read specification modified to match our code here: MTL Specification

Now supports .mtl file illum modes:

  1. Color
  2. Diffuse
  3. Diffuse + Specular
  4. Diffuse + Specular + Reflection
  5. Diffuse + Specular + Reflection + Transparency
  6. Diffuse + FresnelSpecular + FresnelReflection
  7. Diffuse + Specular + Reflection + Refraction
  8. Diffuse + FresnelSpecular + FresnelReflection + FresnelRefraction
  9. Diffuse + Specular + Reflection (asks for no-ray-tracing, ignore, fallback to 3)
  10. Diffuse + Specular + Reflection + Transparency (asks for no-ray-tracing, ignore, fallback to 4)
  11. None

Fresnel needs implementation

Modes:

  1. Pass material color as value (no effects)
  2. Diffuse filter only
  3. Diffuse and Specular filters
  4. Reflection (for mirrors)
  5. Transparent (for non-refractive transparent materials)
  6. Fallback to normal reflection mode. Now renders, but needs implementation of Fresnel for prettification.
  7. Refraction (for refractive transparent materials)
  8. *Fallback to normal refraction mode. Now renders, but needs implementation of Fresnel for prettification.
  9. Defaults to 3
  10. Defaults to 4
  11. Always black
Clone this wiki locally