Manual     Reference     Scripting  
  
Scripting > Enumerations > LightShadows   
  • Menu
  • Overview
  • Runtime Classes
  • Attributes
  • Enumerations
  • Editor Classes
  • Attributes
  • Enumerations
  • History
  • Index
  • LightShadows
  • All Members
  • Values
  • Hard
  • None
  • Soft

LightShadows.Soft  

LightShadows.Soft

Description

Cast "soft" shadows (with 4x PCF filtering).

See Also: light component.

JavaScript
// Set light to cast 4x filtered soft shadows (disc)

light.shadows = LightShadows.Soft;

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Example() {
light.shadows = LightShadows.Soft;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Example():
light.shadows = LightShadows.Soft