Created
March 9, 2017 16:38
-
-
Save CrossVR/87e218922cef14670c52e2e08e52e62e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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