threepipe
Version:
A 3D viewer framework built on top of three.js in TypeScript with a focus on quality rendering, modularity and extensibility.
17 lines • 870 B
TypeScript
/**
* Replace a string in a shader function with added options to prepend, append, show warning when not found, and replace all occurrences.
* @param shader - shader code
* @param str - string to replace
* @param newStr - new string to replace with
* @param replaceAll - replace all occurrences
* @param prepend - prepend new string to old string
* @param append - append new string to old string
* @param _str - optional string to use for replacement. This must be passed if str is a RegExp and append/prepend is true
*/
export declare function shaderReplaceString(shader: string, str: string | RegExp, newStr: string, { replaceAll, prepend, append, str: _str, }?: {
replaceAll?: boolean | undefined;
prepend?: boolean | undefined;
append?: boolean | undefined;
str?: string | undefined;
}): string;
//# sourceMappingURL=shader-helpers.d.ts.map