fromGradient static method
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));