RenderEnvironment constructor

const RenderEnvironment({
  1. Vector3 skyColor = const Vector3(0.16, 0.48, 0.78),
  2. double skyAlpha = 1,
  3. double ambientIntensity = 30000,
  4. double reflectionIntensity = 0.9,
})

Creates renderer environment settings.

Implementation

const RenderEnvironment({
  this.skyColor = const Vector3(0.16, 0.48, 0.78),
  this.skyAlpha = 1,
  this.ambientIntensity = 30000,
  this.reflectionIntensity = 0.9,
}) : assert(skyAlpha >= 0 && skyAlpha <= 1),
     assert(ambientIntensity >= 0),
     assert(reflectionIntensity >= 0 && reflectionIntensity <= 1);