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.

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

using UnityEngine;
using System.Collections;

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

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Example():
light.shadowStrength = 0.3F