Click or drag to resize
XDL

NXPlanetViewSetSunPosition Method (XGeoPoint, Single)

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

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

Parameters

pos
Type: Pixoneer.NXDLXGeoPoint
[In] 태양 위치
minSunCosVal
Type: SystemSingle
[In] 태양과 렌더링 위치의 각도 cos 최소값 설정. 렌더링 시 태양 위치에 따른 가장 어두운 것을 조정할 때 사용. 0 ~ 1 값으로 조정되어 적용
Shader version이 0인 경우에는 -1.0 ~ 1.0이 유효함.
Examples
nxPlanetView3D.EnableGroundEffect = true;
nxPlanetView3D.SetSunFollowCamera(false);     // 태양 위치는 SetSunPostion에 설정된 위치로 고정

XGeoPoint sunPos = XGeoPoint.FromDegree(180.0, 0.0, XConstants.EarthR1);   
nxPlanetView3D.SetSunPosition(sunPos, 0.1f);
nxPlanetView3D.RefreshScreen();
See Also