Three.js multiple materials on object loaded via OBJMTLLoader

You have a couple of choices:

  1. You can mix the images on the javascript side using canvas tools, and create a single material with a single texture map.

  2. You can achieve a multi-texture effect with a custom ShaderMaterial. Have two texture inputs, and implement color mixing in the shader.

Here an example of just about the simplest three.js ShaderMaterial possible that implements mixing of two textures: https://jsfiddle.net/fvb85z92/.

three.js r.150

Leave a Comment