Second-order spherical harmonics function.

二阶球谐函数。

构造函数

方法

  • 参数

    • i: number

      The channel index, ranging from 0 to 2.

    • j: number

      The coefficient index, ranging from 0 to 8.

    返回 number

    The coefficient value.

    Gets the coefficient for a specific color channel.

    获取特定颜色通道的系数。

  • 参数

    • i: number

      The channel index, ranging from 0 to 2.

    • j: number

      The coefficient index, ranging from 0 to 8.

    • coefficient: number

      The coefficient value to set.

    返回 void

    Sets the coefficient for a specific color channel.

    设置特定颜色通道的系数。

  • 参数

    • i: number

      The channel index, ranging from 0 to 2.

    • coefficient0: number

      Coefficient 0

    • coefficient1: number

      Coefficient 1

    • coefficient2: number

      Coefficient 2

    • coefficient3: number

      Coefficient 3

    • coefficient4: number

      Coefficient 4

    • coefficient5: number

      Coefficient 5

    • coefficient6: number

      Coefficient 6

    • coefficient7: number

      Coefficient 7

    • coefficient8: number

      Coefficient 8

    返回 void

    Sets the coefficients for a specific color channel.

    设置颜色通道的系数。