mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
build 180210. light source angle calculation tweak
This commit is contained in:
7
moon.cpp
7
moon.cpp
@@ -118,10 +118,11 @@ void cMoon::move() {
|
||||
if( m_observer.second >= 0 ) { localtime.wSecond = m_observer.second; }
|
||||
|
||||
double ut = localtime.wHour
|
||||
+ localtime.wMinute / 60.0 // too low resolution, noticeable skips
|
||||
+ localtime.wSecond / 3600.0; // good enough in normal circumstances
|
||||
+ localtime.wMinute / 60.0; // too low resolution, noticeable skips
|
||||
// NOTE: finer resolution disabled to reduce shadow crawl in current implementation
|
||||
/*
|
||||
+ localtime.wMilliseconds / 3600000.0; // for really smooth movement
|
||||
+ localtime.wSecond / 3600.0 // good enough in normal circumstances
|
||||
+ localtime.wMilliseconds / 3600000.0; // for really smooth movement
|
||||
*/
|
||||
double daynumber = 367 * localtime.wYear
|
||||
- 7 * ( localtime.wYear + ( localtime.wMonth + 9 ) / 12 ) / 4
|
||||
|
||||
Reference in New Issue
Block a user