paperFibreAlpha function

int paperFibreAlpha(
  1. int g
)

Alpha (of 255) of the lightest white grain texel at grain g ‰.

Implementation

int paperFibreAlpha(int g) =>
    (255 * paperFibreMaxPermille * g + 500000) ~/ 1000000;