Click or drag to resize
XDL

NXPlanetViewSetSunPosition Method (XGeoPoint)

대기 효과(밤/낮)를 위한 태양의 위치를 설정한다.

Namespace:  Pixoneer.NXDL.NXPlanet
Assembly:  NXPlanet (in NXPlanet.dll) Version: 2.0.3.31
Syntax
C#
public void SetSunPosition(
	XGeoPoint pos
)

Parameters

pos
Type: Pixoneer.NXDLXGeoPoint
[In] 태양 위치
Examples
nxPlanetView3D.EnableGroundEffect = true;
nxPlanetView3D.SetSunFollowCamera(false);     // 태양 위치는 SetSunPostion에 설정된 위치로 고정

XGeoPoint sunPos = XGeoPoint.FromDegree(180.0, 0.0, XConstants.EarthR1);   
nxPlanetView3D.SetSunPosition(sunPos);     // 태양위치 설정
nxPlanetView3D.RefreshScreen();
See Also