The WebGL Computational Library
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

setUniformsInSolvers (function)

This is a utility to change the value of multiple uniforms on multiple solvers. It can be useful when implementing user interactions with a WebGL application that utilizes multiple solvers and the same set of uniform need to be updated on multiple sets of the solvers.

Invocation syntax

Abubu.setUniformsInSolvers( arrayOfUniformNames, arrayOfUniformNewValues, arrayOfSolvers) ;

Uppon executing the above line, the uniforms with the names provides in the array arrayOfUniformNames will be update with the new values provided with arrayOfUniformNewValues on all the solvers in the array arrayOfSolvers.


   ['diffusion', 'conductivity'], 
   [1.5        , 2.0           ] 
   [ solver1, solver2, solver3 ] ) ;

Execution of the above line, updates a uniforms with the names 'diffusion'and 'conductivity' with the new value of 1.5 and 2.0 respectively, in solver1, solver2, and solver3.