OptionalmapOptionaldirectionDirection pointing from the scene TOWARD the sun (same convention as the terrain material's lightDir). Default (100, 120, 80).
OptionalcolorSun color. Default 0xfff4d0 (warm).
OptionalintensitySun intensity. Default 1.4.
OptionalmaxFurthest ground distance from the camera the shadow frustum covers, in world units. Ground beyond this renders unshadowed; smaller values spend the shadow map's texels on less area (crisper shadows). Default 90.
OptionalmaxTallest shadow caster above the ground plane (terrain + scatter/units), world units. Default 14.
OptionalpaddingExtra world units of margin around the fitted footprint. Default 2.
OptionalbiasDepth bias passed to the shadow map. Default -0.0002.
OptionalnormalWorld-space normal offset for shadow lookups — the main acne guard on low-poly terrain. Default 0.6.
OptionalshadowShadow darkness 0–1 (DirectionalLight.shadow.intensity). Default 1.
Shadow map resolution (square). Default 2048.