domainWarpFunction
A variable containing a GLSL function as a string that defines a domain warping operation applied to coordinates. Domain warping is typically used to introduce variations or distortions in patterns by altering the input space over which a procedure operates.
This variable is used in the shader preamble and the transformation process to modify the coordinate system. By default, the clipDomainWarp
function returns the input coordinates unchanged, maintaining an identity operation.
Developers can override this string with a custom GLSL function to create specific domain warping effects suited for their application.