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

Function RenderObject_SetLightDirection

Descent3/renderobject.cpp:1754–1754  ·  view source on GitHub ↗

Sets the direction of the lightsource to be used when calculating vertex lighting The light source vector should be in the models coordinate space

Source from the content-addressed store, hash-verified

1752// Sets the direction of the lightsource to be used when calculating vertex lighting
1753// The light source vector should be in the models coordinate space
1754void RenderObject_SetLightDirection(vector *dir) { RenderObject_LightDirection = *dir; }
1755// draw an object that has one bitmap & doesn't rotate
1756void obj_draw_blob(object *obj, int bmnum) {
1757 // int orientation=0;

Callers 1

SetupTerrainObjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected