MCPcopy Create free account
hub / github.com/DavidColson/Polybox / Light

Function Light

source/graphics.cpp:906–912  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

904// ***********************************************************************
905
906void Light(int id, Vec3f direction, Vec3f color) {
907 if (id > 2)
908 return;
909
910 pRenderState->lightDirectionsStates[id] = Vec4f::Embed3D(direction);
911 pRenderState->lightColorStates[id] = Vec4f::Embed3D(color);
912}
913
914// ***********************************************************************
915

Callers 1

LuaLightFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected