Documentation
Installation
Textures
Texture
Float32Texture
Int32Texture
Uint32Texture
ImageTexture
CanvasTexture
TableTexture
copyTexture
Solvers
Solver
Copy
setUniformInSolvers
setUniformsInSolvers
SignalPlot
Plot1D
Plot2D
Tvsx
VolumeRayCaster
getColormapList
Probe
TextureReader
ProbeRecorder
IntervalCaller
saveCanvas
APD
OrbitalCameraControl
MouseListener
ClickListener
DoubleClickListener
CtrlClickListener
ShiftClickListener
CommandClickListener
CtrlShiftClickListener
ShiftCtrlClickListener
LongClickListener
Storage
saveToXML
loadFromXML
xorwow
random
Gui
Editor
glMatrix
setUniformInSolvers (function)
This is a utility to change the value of a uniform on multiple solvers. It can be useful when implementing user interactions with a WebGL application that utilizes multiple solvers and the same uniform needs to be updated on multiple sets of the solvers.
Invocation syntax
Abubu.setUniformInSolvers( uniformName, uniformNewValue, arrayOfSolvers) ;
Uppon executing the above line, the uniform with the name uniformName
will be update with the new value of uniformNewValue
on all the solvers in the array arrayOfSolvers
.
Example
Abubu.setUniformInSolvers(
'diffusion',
1.5,
[ solver1, solver2, solver3 ] ) ;
Execution of the above line, updates a uniform with the name 'diffusion'
with the new value of 1.5
in solver1
, solver2
, and solver3
.