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

Function addKeywords

script.js:431–438  ·  view source on GitHub ↗
(source, keywords)

Source from the content-addressed store, hash-verified

429};
430
431function addKeywords (source, keywords) {
432 if (keywords == null) return source;
433 let keywordsString = '';
434 keywords.forEach(keyword => {
435 keywordsString += '#define ' + keyword + '\n';
436 });
437 return keywordsString + source;
438}
439
440const baseVertexShader = compileShader(gl.VERTEX_SHADER, `
441 precision highp float;

Callers 1

compileShaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected