Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Light.shadowSoftness

Switch to Manual
var shadowSoftness: float;
float shadowSoftness;
shadowSoftness as float

Description

Softness of directional light's soft shadows.

See Also: shadows, shadowSoftnessFade properties.

	// make light's shadows very soft
	light.shadowSoftness = 8.0;
using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour {
    void Example() {
        light.shadowSoftness = 8.0F;
    }
}
import UnityEngine
import System.Collections

public class ExampleClass(MonoBehaviour):

	def Example() as void:
		light.shadowSoftness = 8.0F