gpvigano / AsImpL

Asynchronous Importer and run-time Loader for Unity
MIT License
212 stars 37 forks source link

feat(Loader): import and use vertex colors #10

Closed gpvigano closed 6 years ago

gpvigano commented 6 years ago

Added color parsing in LoaderObj.

Added color data to DataSet.

Modified ObjectBuilder to build mesh colors and set a different shader.

Colors are used only if available and if no material library is set.

Added a simple shader in Resource folder to fix Z-buffer problems.

Modified ObjectBuilder to select the new shader if colors are defined and no material library is available.

Updated README.md and documentation.

Tested with Unity 5.5.4f1, 5.6.3f1 (@Dragate), 2017.1.2f1, 2017.2.0f3.