fromGradient static method

Future<EnvironmentMapData> fromGradient(
  1. (double, double, double) zenith,
  2. (double, double, double) horizon,
  3. (double, double, double) ground, {
  4. int size = 32,
})

The surroundings of a gradient sky, as the sky shader draws it: zenith overhead, horizon around, ground below (linear RGB).

Implementation

static Future<EnvironmentMapData> fromGradient(
  (double, double, double) zenith,
  (double, double, double) horizon,
  (double, double, double) ground, {
  int size = 32,
}) => compute(_gradientJob, (zenith, horizon, ground, size));