@babylonjs/viewer
Version:
The Babylon Viewer aims to simplify a specific but common Babylon.js use case: loading, viewing, and interacting with a 3D model.
3 lines (2 loc) • 892 B
JavaScript
import{c as t}from"./KHR_interactivity-D4lwBSW9.esm.min.js";import{R as e,d as o}from"./declarationMapper-D_filC93.esm.min.js";import{u as s}from"./index-BPURObVq.esm.min.js";import"./objectModelMapping-ClgDmo5Q.esm.min.js";import"./spotLight.pure-5s2DDDIt.esm.min.js";class i extends t{constructor(t){super(t),this.sound=this.registerDataInput("sound",e),this.volume=this.registerDataInput("volume",o,1)}_execute(t,e){const o=this.sound.getValue(t);if(!o)return this._reportError(t,"No sound provided"),void this.out._activateSignal(t);const s=this.volume.getValue(t);o.volume=s,this.out._activateSignal(t)}getClassName(){return"FlowGraphSetSoundVolumeBlock"}}let r=!1;function n(){r||(r=!0,s("FlowGraphSetSoundVolumeBlock",i))}n();export{i as FlowGraphSetSoundVolumeBlock,n as RegisterFlowGraphSetSoundVolumeBlock};
//# sourceMappingURL=flowGraphSetSoundVolumeBlock-BhwKw7Eu.esm.min.js.map