Light.shadowSoftness Manual     Reference     Scripting  
Scripting > Runtime Classes > Light
Light.shadowSoftness

var shadowSoftness : float

Description

Softness of directional light's soft shadows

See Also: shadows, shadowSoftnessFade properties.

JavaScripts
// make light's shadows very soft
light.shadowSoftness = 8.0;

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
light.shadowSoftness = 8.0F;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
light.shadowSoftness = 8.0F