EnvironmentResource constructor

EnvironmentResource(
  1. LocalId id, {
  2. String name = '',
  3. EnvironmentSpec environment = const StudioEnvironment(),
  4. double environmentIntensity = 1.0,
  5. double exposure = 1.0,
  6. String toneMapping = 'pbrNeutral',
  7. double agxWhite = 16.29,
  8. double agxContrast = 1.25,
  9. double environmentRotationY = 0.0,
  10. int? radianceCubeSize,
  11. SkyboxSpec? skybox,
  12. SkyEnvironmentSpec? skyEnvironment,
  13. EnvironmentEffectsSpec? effects,
  14. bool overridesEffects = true,
})

Creates an environment resource with the documented defaults.

Implementation

EnvironmentResource(
  super.id, {
  this.name = '',
  this.environment = const StudioEnvironment(),
  this.environmentIntensity = 1.0,
  this.exposure = 1.0,
  this.toneMapping = 'pbrNeutral',
  this.agxWhite = 16.29,
  this.agxContrast = 1.25,
  this.environmentRotationY = 0.0,
  this.radianceCubeSize,
  this.skybox,
  this.skyEnvironment,
  EnvironmentEffectsSpec? effects,
  this.overridesEffects = true,
}) : effects = effects ?? EnvironmentEffectsSpec();