MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / GenerateLightSource

Function GenerateLightSource

Descent3/terrain.cpp:938–941  ·  view source on GitHub ↗

Takes our 1st satellite and fills in the appropriate values in the lightsource vector

Source from the content-addressed store, hash-verified

936
937// Takes our 1st satellite and fills in the appropriate values in the lightsource vector
938void GenerateLightSource() {
939 Terrain_sky.lightsource.x = FixCos(Terrain_sky.lightangle);
940 Terrain_sky.lightsource.z = FixSin(Terrain_sky.lightangle);
941}
942
943void InitTerrain(void) {
944 int i, w, h, t;

Callers 2

GenerateTerrainLightFunction · 0.85
InitTerrainFunction · 0.85

Calls 2

FixCosFunction · 0.50
FixSinFunction · 0.50

Tested by

no test coverage detected