Light.shadowStrength 阴影强度

var shadowStrength : float

Description描述

Strength of light's shadows

灯光阴影的强度。

参见:LightShadows属性,Renderer.castShadows, Renderer.receiveShadows.

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	void Awake() {
		light.shadowStrength = 0.3F;
	}
}
// make light's shadows very faint
//使灯光的阴影非常弱

light.shadowStrength = 0.3;
Page last updated: 2011-3-30