examples/resources/js/benchmark.js
function selectDimensionsAndMaterials() {
  let reverbLength = document.getElementById('reverbLengthSelect').value;
  switch (reverbLength) {
    case 'none':
    default:
    {
      return {
        dimensions: {
          width: 0,
          height: 0,
          depth: 0,
        },
        materials: {
          left: 'transparent',
          right: 'transparent',
          front: 'transparent',
          back: 'transparent',
          up: 'transparent',
          down: 'transparent',
        },
      };
    }
    break;
    case 'short':
    {
      return {
        dimensions: {
          width: 1.5,
          height: 1.5,
          depth: 1.5,
        },
        materials: {
          left: 'uniform',
          right: 'uniform',
          front: 'uniform',
          back: 'uniform',
          up: 'uniform',
          down: 'uniform',
        },
      };
    }
    break;
    case 'medium':
    {
      return {
        dimensions: {
          width: 6,
          height: 6,
          depth: 6,
        },
        materials: {
          left: 'uniform',
          right: 'uniform',
          front: 'uniform',
          back: 'uniform',
          up: 'uniform',
          down: 'uniform',
        },
      };
    }
    break;
    case 'long':
    {
      return {
        dimensions: {
          width: 24,
          height: 24,
          depth: 24,
        },
        materials: {
          left: 'uniform',
          right: 'uniform',
          front: 'uniform',
          back: 'uniform',
          up: 'uniform',
          down: 'uniform',
        },
      };
    }
    break;
  }
}
function selectDimensionsAndMaterials() {
  let reverbLength = document.getElementById('reverbLengthSelect').value;
  switch (reverbLength) {
    case 'none':
    default:
    {
      return {
        dimensions: {
          width: 0,
          height: 0,
          depth: 0,
        },
        materials: {
          left: 'transparent',
          right: 'transparent',
          front: 'transparent',
          back: 'transparent',
          up: 'transparent',
          down: 'transparent',
        },
      };
    }
    break;
    case 'short':
    {
      return {
        dimensions: {
          width: 1.5,
          height: 1.5,
          depth: 1.5,
        },
        materials: {
          left: 'uniform',
          right: 'uniform',
          front: 'uniform',
          back: 'uniform',
          up: 'uniform',
          down: 'uniform',
        },
      };
    }
    break;
    case 'medium':
    {
      return {
        dimensions: {
          width: 6,
          height: 6,
          depth: 6,
        },
        materials: {
          left: 'uniform',
          right: 'uniform',
          front: 'uniform',
          back: 'uniform',
          up: 'uniform',
          down: 'uniform',
        },
      };
    }
    break;
    case 'long':
    {
      return {
        dimensions: {
          width: 24,
          height: 24,
          depth: 24,
        },
        materials: {
          left: 'uniform',
          right: 'uniform',
          front: 'uniform',
          back: 'uniform',
          up: 'uniform',
          down: 'uniform',
        },
      };
    }
    break;
  }
}
function selectDimensionsAndMaterials ( ) { let reverbLength = document . getElementById ( 'reverbLengthSelect' ) . value ; switch ( reverbLength ) { case 'none' : default : { return { dimensions : { width : 0 , height : 0 , depth : 0 , } , materials : { left : 'transparent' , right : 'transparent' , front : 'transparent' , back : 'transparent' , up : 'transparent' , down : 'transparent' , } , } ; } break ; case 'short' : { return { dimensions : { width : 1.5 , height : 1.5 , depth : 1.5 , } , materials : { left : 'uniform' , right : 'uniform' , front : 'uniform' , back : 'uniform' , up : 'uniform' , down : 'uniform' , } , } ; } break ; case 'medium' : { return { dimensions : { width : 6 , height : 6 , depth : 6 , } , materials : { left : 'uniform' , right : 'uniform' , front : 'uniform' , back : 'uniform' , up : 'uniform' , down : 'uniform' , } , } ; } break ; case 'long' : { return { dimensions : { width : 24 , height : 24 , depth : 24 , } , materials : { left : 'uniform' , right : 'uniform' , front : 'uniform' , back : 'uniform' , up : 'uniform' , down : 'uniform' , } , } ; } break ; } }
Select appropriate dimensions and materials.
@return {Object}
@private
Select appropriate dimensions and materials .