LightShadows
.Soft
Manual
Reference
Scripting
Scripting
>
Enumerations
>
LightShadows
LightShadows
.Soft
Menu
Overview
Runtime Classes
Attributes
Enumerations
Editor Classes
Enumerations
History
Index
LightShadows
All Members
Values
Hard
None
Soft
LightShadows.Soft
Description
Cast "soft" shadows (with 4x PCF filtering).
See Also:
light component
.
JavaScripts
JavaScript
C#
Boo
// Set light to cast 4x filtered soft shadows
light.shadows =
LightShadows.Soft
;
using UnityEngine;
using System.Collections;
public
class
example :
MonoBehaviour
{
void
Awake
() {
light.shadows =
LightShadows.Soft
;
}
}
import
UnityEngine
import
System.Collections
class
example(
MonoBehaviour
):
def
Awake
():
light.shadows =
LightShadows.Soft