Light.shadowSoftness 阴影柔化

var shadowSoftness : float

Description描述

Softness of directional light's soft shadows

平行光的柔化软阴影。

参见: shadows, shadowSoftnessFade 属性

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	void Awake() {
		light.shadowSoftness = 8.0F;
	}
}
// make light's shadows very soft
//使灯光的阴影非常柔

light.shadowSoftness = 8.0;
Page last updated: 2011-3-30