Click or drag to resize
XDL

NXPlanetViewSetSunPosition(XGeoPoint) Method

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

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

Parameters

pos  XGeoPoint
[In] 태양 위치
Example
C#
nxPlanetView3D.EnableGroundEffect = true;
nxPlanetView3D.SetSunFollowCamera(false);     // 태양 위치는 SetSunPostion에 설정된 위치로 고정

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