MCPcopy Create free account
hub / github.com/PavelDoGreat/WebGL-Fluid-Simulation / constructor

Method constructor

script.js:352–358  ·  view source on GitHub ↗
(vertexShader, fragmentShaderSource)

Source from the content-addressed store, hash-verified

350
351class Material {
352 constructor (vertexShader, fragmentShaderSource) {
353 this.vertexShader = vertexShader;
354 this.fragmentShaderSource = fragmentShaderSource;
355 this.programs = [];
356 this.activeProgram = null;
357 this.uniforms = [];
358 }
359
360 setKeywords (keywords) {
361 let hash = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected