| 1174 | |
| 1175 | |
| 1176 | void Globe::drawShadow() |
| 1177 | { |
| 1178 | ShaderMove<Cord> earth = ShaderMove<Cord>(_earthData[_zoom], getWidth(), getHeight()); |
| 1179 | ShaderRepeat<Sint16> noise = ShaderRepeat<Sint16>(_randomNoiseData, static_data.random_surf_size, static_data.random_surf_size); |
| 1180 | |
| 1181 | earth.setMove(_cenX-getWidth()/2, _cenY-getHeight()/2); |
| 1182 | |
| 1183 | lock(); |
| 1184 | ShaderDraw<CreateShadow>(ShaderSurface(this), earth, ShaderScalar(getSunDirection(_cenLon, _cenLat)), noise); |
| 1185 | unlock(); |
| 1186 | |
| 1187 | } |
| 1188 | |
| 1189 | |
| 1190 | void Globe::XuLine(Surface* surface, Surface* src, double x1, double y1, double x2, double y2, int shade) |
nothing calls this directly
no test coverage detected