Skip to content

Instantly share code, notes, and snippets.

@CrossVR
Created March 9, 2017 16:38
Show Gist options
  • Save CrossVR/87e218922cef14670c52e2e08e52e62e to your computer and use it in GitHub Desktop.
Save CrossVR/87e218922cef14670c52e2e08e52e62e to your computer and use it in GitHub Desktop.
float ps_sun_direction = 0.0f;
class CCC_SunDirection : public CCC_Float
{
public:
CCC_SunDirection(LPCSTR N, float* V) : CCC_Float(N, V, 0.0f, 360.0f) {}
virtual void Execute(LPCSTR args)
{
CCC_Float::Execute(args);
g_pGamePersistent->Environment().m_sun_azimuth = ps_sun_direction * (PI / 180.0f);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment