MCPcopy Create free account
hub / github.com/anvaka/fieldplay / initPrograms

Function initPrograms

src/lib/programs/drawParticlesProgram.js:35–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33 }
34
35 function initPrograms() {
36 // need to update the draw graph because color mode shader has changed.
37 initDrawProgram();
38
39 if (config.isAudioEnabled) {
40 if (audioProgram) audioProgram.dispose();
41 audioProgram = createAudioProgram(ctx);
42 }
43 }
44
45 function initDrawProgram() {
46 if (drawProgram) drawProgram.unload();

Callers 1

drawParticlesProgramFunction · 0.85

Calls 1

initDrawProgramFunction · 0.85

Tested by

no test coverage detected