domainWarpFunction

Customizable GLSL function used to perform domain warping on a given vector. This property allows defining a function written in GLSL that alters the texture coordinate p for advanced procedural texturing techniques or creative transformations.

The default value is a no-op function that directly returns the input vector: vec2 if_domainWarp(vec2 p) { return p; }.

This property can be dynamically updated to specify a custom domain warp, such as displacements based on time, noise, or other parameters.

To apply domain warping, update this property with a valid GLSL function that operates on vec2 input and returns a transformed vec2 coordinate.