just use function(){return texture}: ```js _r.load.texture("lightmap.jpg", { coordinatesIndex: 1 }).then(function (texture) { _r.patch([{ "*name*:material": { "lightmapTexture": function(){return texture}, "useLightmapAsShadowmap": true } }]); }); ```