Open Vinc3r opened 4 years ago
could be described as "multiple way to load & assign a texture", here another example:
_r.patch([{
"*name*:material": {
"lightmapTexture": function () {
return _r.load.texture("lightmap.jpg", {
coordinatesIndex: 1
});
},
"useLightmapAsShadowmap": true
}
}]);
just use function(){return texture}: