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

var shadowStrength : float

Description

Strength of light's shadows

See Also: shadows property, Renderer.castShadows, Renderer.receiveShadows.

JavaScripts
// make light's shadows very faint
light.shadowStrength = 0.3;

using UnityEngine;
using System.Collections;

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

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
light.shadowStrength = 0.3F