I am using Optimizely to test adding 3D objects to our site and want to use the GLTF Loader.
I have all my imports I just need help with the source to the gltf file. Locally I give the path or the name of the gltf file like below and it renders fine. How can I load a glTF without downloading the file but rather by giving it a source?
var gltf = “scene.gltf”;
obj = gltf.scene;