MCPcopy Create free account
hub / github.com/DavidHDev/react-bits / _initPrograms

Method _initPrograms

src/tools/texture-lab/renderer.js:147–179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145 }
146
147 _initPrograms() {
148 this.programs.passthrough = this._createProgram(VERTEX_SHADER, PASSTHROUGH_FRAGMENT_SHADER);
149 this.programs.noise = this._createProgram(VERTEX_SHADER, NOISE_FRAGMENT_SHADER);
150 this.programs.dither = this._createProgram(VERTEX_SHADER, DITHER_FRAGMENT_SHADER);
151 this.programs.halftone = this._createProgram(VERTEX_SHADER, HALFTONE_FRAGMENT_SHADER);
152 this.programs.ascii = this._createProgram(VERTEX_SHADER, ASCII_FRAGMENT_SHADER);
153 this.programs.overlay = this._createProgram(VERTEX_SHADER, OVERLAY_FRAGMENT_SHADER);
154 this.programs.chromatic = this._createProgram(VERTEX_SHADER, CHROMATIC_FRAGMENT_SHADER);
155 this.programs.vignette = this._createProgram(VERTEX_SHADER, VIGNETTE_FRAGMENT_SHADER);
156 this.programs.scanlines = this._createProgram(VERTEX_SHADER, SCANLINES_FRAGMENT_SHADER);
157 this.programs.pixelate = this._createProgram(VERTEX_SHADER, PIXELATE_FRAGMENT_SHADER);
158 this.programs.blur = this._createProgram(VERTEX_SHADER, BLUR_FRAGMENT_SHADER);
159 this.programs.distortion = this._createProgram(VERTEX_SHADER, DISTORTION_FRAGMENT_SHADER);
160 this.programs.posterize = this._createProgram(VERTEX_SHADER, POSTERIZE_FRAGMENT_SHADER);
161 this.programs.edge = this._createProgram(VERTEX_SHADER, EDGE_FRAGMENT_SHADER);
162 this.programs.grain = this._createProgram(VERTEX_SHADER, GRAIN_FRAGMENT_SHADER);
163 this.programs.colorGrade = this._createProgram(VERTEX_SHADER, COLOR_GRADE_FRAGMENT_SHADER);
164 this.programs.glitch = this._createProgram(VERTEX_SHADER, GLITCH_FRAGMENT_SHADER);
165 this.programs.crt = this._createProgram(VERTEX_SHADER, CRT_FRAGMENT_SHADER);
166 this.programs.duotone = this._createProgram(VERTEX_SHADER, DUOTONE_FRAGMENT_SHADER);
167 this.programs.kuwahara = this._createProgram(VERTEX_SHADER, KUWAHARA_FRAGMENT_SHADER);
168 this.programs.barrel = this._createProgram(VERTEX_SHADER, BARREL_FRAGMENT_SHADER);
169 this.programs.ripple = this._createProgram(VERTEX_SHADER, RIPPLE_FRAGMENT_SHADER);
170 this.programs.displacement = this._createProgram(VERTEX_SHADER, DISPLACEMENT_FRAGMENT_SHADER);
171 this.programs.lightLeak = this._createProgram(VERTEX_SHADER, LIGHT_LEAK_FRAGMENT_SHADER);
172 this.programs.bloom = this._createProgram(VERTEX_SHADER, BLOOM_FRAGMENT_SHADER);
173 this.programs.radialBlur = this._createProgram(VERTEX_SHADER, RADIAL_BLUR_FRAGMENT_SHADER);
174 this.programs.mosaic = this._createProgram(VERTEX_SHADER, MOSAIC_FRAGMENT_SHADER);
175 this.programs.tiltShift = this._createProgram(VERTEX_SHADER, TILT_SHIFT_FRAGMENT_SHADER);
176 this.programs.exposure = this._createProgram(VERTEX_SHADER, EXPOSURE_FRAGMENT_SHADER);
177 this.programs.vibrance = this._createProgram(VERTEX_SHADER, VIBRANCE_FRAGMENT_SHADER);
178 this.programs.dotDither = this._createProgram(VERTEX_SHADER, DOT_DITHER_FRAGMENT_SHADER);
179 }
180
181 _createTexture(source) {
182 const gl = this.gl;

Callers 1

constructorMethod · 0.95

Calls 1

_createProgramMethod · 0.95

Tested by

no test coverage detected