pixi-jsFunctions
Function: injectBits()
> injectBits(templateSrc, fragmentParts): string
Defined in: node_modules/pixi.js/lib/rendering/high-shader/compiler/utils/injectBits.d.ts:7
Internal
takes a shader src and replaces any hooks with the HighFragment code.
Parameters
templateSrc
string
the program src template
fragmentParts
Record<string, string[]>
the fragments to inject
Returns
string