• Defines the outputs being drawn to per-pass, as GLSL preprocessor macros.

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

    Parameters

    • state: any

      Properties for generating 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

    GLSL preprocessor macros for the pass's bound outputs.