기술 자료

Unity Engine

Unity Engine

DirectionalLight

A helper structure used to initialize a LightDataGI structure as a directional light.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

public struct DirectionalLight

Fields

Value

Description

colorThe direct light color.
entityIdThe light's entityId.
indirectColorThe indirect light color.
modeThe lightmode.
orientationThe light's orientation. Only relevant for cookie placement.
penumbraWidthRadianThe penumbra width for soft shadows in radians.
positionThe light's position. Only relevant for cookie placement.
shadowTrue if the light casts shadows, otherwise False.