shRestCoeffCount static method

int shRestCoeffCount(
  1. int degree
)

Rest (beyond degree 0) SH coefficients per splat and channel, 0 at degree 0, 3 at 1, 8 at 2.

Implementation

static int shRestCoeffCount(int degree) => (degree + 1) * (degree + 1) - 1;