MCPcopy Index your code
hub / github.com/PavelDoGreat/WebGL-Fluid-Simulation / constructor

Method constructor

script.js:385–389  ·  view source on GitHub ↗
(vertexShader, fragmentShader)

Source from the content-addressed store, hash-verified

383
384class Program {
385 constructor (vertexShader, fragmentShader) {
386 this.uniforms = {};
387 this.program = createProgram(vertexShader, fragmentShader);
388 this.uniforms = getUniforms(this.program);
389 }
390
391 bind () {
392 gl.useProgram(this.program);

Callers

nothing calls this directly

Calls 2

createProgramFunction · 0.85
getUniformsFunction · 0.85

Tested by

no test coverage detected