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.

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

using UnityEngine;
using System.Collections;

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

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Example():
light.shadowSoftness = 8.0F