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. int? radianceCubeSize,
  8. SkyboxSpec? skybox,
  9. SkyEnvironmentSpec? skyEnvironment,
})

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.radianceCubeSize,
  this.skybox,
  this.skyEnvironment,
});