Aeva / m.grl

Midnight Graphics & Recreation Library
http://mgrl.midnightsisters.org
GNU Lesser General Public License v3.0
44 stars 3 forks source link

multiple texture support #171

Open Aeva opened 8 years ago

Aeva commented 8 years ago

In the situation where an object has multiple textures, each texture could be given a custom property to denote what glsl uniform name it should be bound to. In the absence of such a custom property, the exporter should assume more intelligently what a texture is for. Eg, if an object has two textures, one effects the color of the object, and the other effects the normals, then they should default to "diffuse_texture" and "normal_texture" respectively.

This should hopefully not require any changes in the importer.