Type alias IGLBlendEquation

IGLBlendEquation: "FUNC_ADD" | "FUNC_SUBTRACT" | "FUNC_REVERSE_SUBTRACT" | "MIN" | "MAX"

混合方法

  • FUNC_ADD 源 + 目标
  • FUNC_SUBTRACT 源 - 目标
  • FUNC_REVERSE_SUBTRACT 目标 - 源
  • MIN 源与目标的最小值,在 WebGL 2 中可使用。在 WebGL 1 时,自动使用 EXT_blend_minmax 扩展中 MIN_EXT 值。
  • MAX 源与目标的最大值,在 WebGL 2 中可使用。在 WebGL 1 时,自动使用 EXT_blend_minmax 扩展中 MAX_EXT 值。

A GLenum specifying how source and destination colors are combined. Must be either:

  • gl.FUNC_ADD: source + destination (default value)
  • gl.FUNC_SUBTRACT: source - destination
  • gl.FUNC_REVERSE_SUBTRACT: destination - source

When using the EXT_blend_minmax extension:

  • ext.MIN_EXT: Minimum of source and destination
  • ext.MAX_EXT: Maximum of source and destination

When using a WebGL 2 context, the following values are available additionally:

  • gl.MIN: Minimum of source and destination
  • gl.MAX: Maximum of source and destination

Generated using TypeDoc