SceneExporter2.js 380 B

123456789101112131415161718192021222324252627
  1. /**
  2. * @author mrdoob / http://mrdoob.com/
  3. */
  4. THREE.SceneExporter2 = function () {};
  5. THREE.SceneExporter2.prototype = {
  6. constructor: THREE.SceneExporter2,
  7. parse: function ( scene ) {
  8. var output = {
  9. metadata: {
  10. formatVersion : 4.0,
  11. type : "scene",
  12. generatedBy : "SceneExporter2"
  13. }
  14. };
  15. console.log( scene );
  16. return JSON.stringify( output );
  17. }
  18. }