• Defines the values within textures per-step, as GLSL preprocessor macros.

    These macros define mappings from values to their textures and channels. Caches the result if macros generation is enabled, to help reuse shaders.

    Parameters

    • state: any

      Properties used to generate the macros. See toData.

    • Optionalon: string

      Any further macro hooks specifier; if given, both the hook key and this specifier are checked (e.g: key and key_on).

    Returns string

    The GLSL preprocessor macros defining the maps from values to textures and channels.