src/scene/structure/to-aframe-elements.js
function createBakedElement(parentElem, element3d) {
  // we might have a scene that has no baked level
  if (!element3d.bakedModelUrl && !element3d.bakePreviewStatusFileKey) {
    console.warn('Level without bakedModelUrl: ', element3d)
    return
  }
  // set data3d.buffer file key
  var attributes = {
    'io3d-data3d': 'key: ' + element3d.bakedModelUrl,
    shadow: 'cast: false; receive: true'
  }
  // set lightmap settings
  if (element3d.lightMapIntensity) {
    attributes['io3d-data3d'] += '; lightMapIntensity: ' + element3d.lightMapIntensity + '; lightMapExposure: ' + element3d.lightMapCenter
  }

  var bakedElem = addEntity({
    attributes: attributes,
    parent: parentElem
  })

  if (element3d.bakeRegularStatusFileKey || element3d.bakePreviewStatusFileKey) {
    updateOnBake(bakedElem, element3d)
  }

}
function createBakedElement(parentElem, element3d) {
  // we might have a scene that has no baked level
  if (!element3d.bakedModelUrl && !element3d.bakePreviewStatusFileKey) {
    console.warn('Level without bakedModelUrl: ', element3d)
    return
  }
  // set data3d.buffer file key
  var attributes = {
    'io3d-data3d': 'key: ' + element3d.bakedModelUrl,
    shadow: 'cast: false; receive: true'
  }
  // set lightmap settings
  if (element3d.lightMapIntensity) {
    attributes['io3d-data3d'] += '; lightMapIntensity: ' + element3d.lightMapIntensity + '; lightMapExposure: ' + element3d.lightMapCenter
  }

  var bakedElem = addEntity({
    attributes: attributes,
    parent: parentElem
  })

  if (element3d.bakeRegularStatusFileKey || element3d.bakePreviewStatusFileKey) {
    updateOnBake(bakedElem, element3d)
  }

}
function createBakedElement ( parentElem , element3d ) { // we might have a scene that has no baked level if ( ! element3d . bakedModelUrl && ! element3d . bakePreviewStatusFileKey ) { console . warn ( 'Level without bakedModelUrl: ' , element3d ) return } // set data3d.buffer file key var attributes = { 'io3d-data3d' : 'key: ' + element3d . bakedModelUrl , shadow : 'cast: false; receive: true' } // set lightmap settings if ( element3d . lightMapIntensity ) { attributes [ 'io3d-data3d' ] += '; lightMapIntensity: ' + element3d . lightMapIntensity + '; lightMapExposure: ' + element3d . lightMapCenter } var bakedElem = addEntity ( { attributes : attributes , parent : parentElem } ) if ( element3d . bakeRegularStatusFileKey || element3d . bakePreviewStatusFileKey ) { updateOnBake ( bakedElem , element3d ) } }
creates a child for a baked model in the current element
creates a child for a baked model in the current element