Table of Contents

Delegate SolarSphericalCoordsDelegate

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll

Should return sin(solar altitude angle). i.e. -1 for 90 degrees far below horizon, 0 for horizon and 1 for vertical

public delegate SolarSphericalCoords SolarSphericalCoordsDelegate(double posX, double posZ, float yearRel, float dayRel)

Parameters

posX double

World x coordinate

posZ double

World z coordinate

yearRel float

Current year progress, from 0..1

dayRel float

Current day progress, from 0..1

Returns

SolarSphericalCoords
Extension Methods