SunLightSpec constructor
SunLightSpec({
- bool castsShadow = true,
- double intensityScale = 1.0,
- int priority = 0,
- bool cacheStaticShadows = true,
- double shadowSoftness = 0.08,
- double shadowMaxDistance = 150.0,
- int shadowCascadeCount = 4,
- int shadowMapResolution = 1024,
- double shadowDepthBias = 0.02,
- double shadowNormalBias = 0.02,
- double shadowFadeRange = 2.0,
- double shadowCascadeSplitLambda = 0.6,
- double shadowAmbientStrength = 0.0,
- String shadowFilter = 'rotatedPoisson',
- bool contactShadows = false,
- double contactShadowDistance = 0.3,
- double angularRadius = 0.005,
- 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',
});