SunLightSpec constructor

SunLightSpec({
  1. bool castsShadow = true,
  2. double intensityScale = 1.0,
  3. int priority = 0,
  4. bool cacheStaticShadows = true,
  5. double shadowSoftness = 0.08,
  6. double shadowMaxDistance = 150.0,
  7. int shadowCascadeCount = 4,
  8. int shadowMapResolution = 1024,
  9. double shadowDepthBias = 0.02,
  10. double shadowNormalBias = 0.02,
  11. double shadowFadeRange = 2.0,
  12. double shadowCascadeSplitLambda = 0.6,
  13. double shadowAmbientStrength = 0.0,
  14. String shadowFilter = 'rotatedPoisson',
  15. bool contactShadows = false,
  16. double contactShadowDistance = 0.3,
  17. double angularRadius = 0.005,
  18. String shadowCasterFaces = 'front',
})

Creates the spec with the runtime defaults.

Implementation

SunLightSpec({
  this.castsShadow = true,
  this.intensityScale = 1.0,
  this.priority = 0,
  this.cacheStaticShadows = true,
  this.shadowSoftness = 0.08,
  this.shadowMaxDistance = 150.0,
  this.shadowCascadeCount = 4,
  this.shadowMapResolution = 1024,
  this.shadowDepthBias = 0.02,
  this.shadowNormalBias = 0.02,
  this.shadowFadeRange = 2.0,
  this.shadowCascadeSplitLambda = 0.6,
  this.shadowAmbientStrength = 0.0,
  this.shadowFilter = 'rotatedPoisson',
  this.contactShadows = false,
  this.contactShadowDistance = 0.3,
  this.angularRadius = 0.005,
  this.shadowCasterFaces = 'front',
});