Share via


SceneLightingEffect.AmbientAmount 屬性

定義

效果所使用的預先定義 AmbientLight 比例。

public:
 property float AmbientAmount { float get(); void set(float value); };
float AmbientAmount();

void AmbientAmount(float value);
public float AmbientAmount { get; set; }
var single = sceneLightingEffect.ambientAmount;
sceneLightingEffect.ambientAmount = single;
Public Property AmbientAmount As Single

屬性值

Single

float

效果所使用的預先定義 AmbientLight 比例。 值必須設定介於 0.0 和 1.0 之間。

適用於