I'm using THREE.js to load a collada model. The model represents a hilly terrain. Right now the model has a repeating texture (grass) to it.
What I'm looking to do is to add decals (not sure if this is the right nomenclature) to the model. Basically I have a patch of sand (decal_sand.png) and I would like to 'paste' this on the model, given an x and a y value. (the point of origin). Optionally with some rotation along the y axis / scaling applied to it. Can this be done?
I'm not really sure how to do a JSfiddle, because I can't load collada models there? I uploaded a test case here: http://graphics.tudelft.nl/~bsg201302/decal_testcase/
I whipped up an example in photoshop. The patches of sand need to be programatically placed on the hilly surface.. http://graphics.tudelft.nl/~bsg201302/decal_testcase/terrain_decals.png