The defaultFunctions are functions already incorporated onto the shaders you create, so you can call them without import.

These are wgsl functions, not js functions. The function is enclosed in a js string constant, to be appended into the code to reference it in the string shader.

Use the base example as reference: examples/base/vert.js

Source:
core/defaultFunctions.js, line 1

MIT

Documentation generated by JSDoc 4.0.5 using Docolatte theme on