aboutsummaryrefslogtreecommitdiff
path: root/src/sky.cpp
AgeCommit message (Collapse)Author
2018-11-28Move client-specific files to 'src/client' (#7902)Quentin Bazin
Update Android.mk Remove 'src/client' from include_directories
2018-11-12Night sky: Fix brightness threshold for applying night colours (#7859)Paramat
Previously, 'time_brightness' never fell below the threshold so night sky colours were not applied. Increase the threshold value. But now also set it to a value less sensitive to possible future small changes in 'time_brightness', by setting it halfway between the 'time_brightness' values for darkest night and first stage of dawn.
2018-10-01Night clouds: Boost brightness for a moonlit appearence (#7748)Paramat
Previously, night clouds were almost indistinguishable from night sky, especially since a recent commit that made night sky brighter. They were lacking the beautiful luminosity caused by being lit by the permanently-full moon. When 'directional_colored_fog = false' allow the dawn/dusk cloud brightness boost to apply through the night too. Set an identical minimum cloud brightness for when 'directional_colored_fog = true'.
2018-09-27Fix stretched stars bug, change render orderAspen
2018-08-04Fix sky objects not rendering with ogles (#7598)stujones11
2018-04-09Sun colour: Undo colour change. Remove double assignment (#7227)Paramat
Commit 5070ca2111dd5b3f333a942059ef2c592de8dc24 changed sun colour by fixing what seemed to be a code mistake. Return to the standard colour but comment-out the first assignment of the double-assignment for performance. Add a comment to explain.
2018-04-04Fix 5 issues reported by PVS studioLoic Blot
* src/sky.cpp 146 warn V519 The 'suncolor_f.r' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 142, 146. * src/sky.cpp 147 warn V519 The 'suncolor_f.g' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 143, 147. * src/sky.cpp 148 warn V519 The 'suncolor_f.b' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 144, 148. * src/threading/thread.cpp 63 err V730 Not all members of a class are initialized inside the constructor. Consider inspecting: m_thread_obj. * src/server.cpp 3243 err V595 The 'log' pointer was utilized before it was verified against nullptr. Check lines: 3243, 3258.
2018-04-04Fix last performance-type-promotion-in-math-fn problemsLoic Blot
2017-08-20Modernize source code: last part (#6285)Loïc Blot
* Modernize source code: last par * Use empty when needed * Use emplace_back instead of push_back when needed * For range-based loops * Initializers fixes * constructors, destructors default * c++ C stl includes
2017-08-19Code modernization: src/p*, src/q*, src/r*, src/s* (partial) (#6282)Loïc Blot
* Code modernization: src/p*, src/q*, src/r*, src/s* (partial) * empty function * default constructor/destructor * for range-based loops * use emplace_back instead of push_back * C++ STL header style * Spelling: vertice -> vertex
2017-07-05Fog effect when camera is inside cloudBen Deutsch
Fixes issue #3576 * Clouds now take camera position as 3D, not 2D * Cloud grid filling extracted to gridFilled method * Clouds detect whether camera is inside cloud * Camera in cloud changes fog by overriding sky colors with cloud color * Sun, moon and stars can be temporarily disabled with setBodiesVisible * Disabling fog also disables all "inside cloud" behaviors
2017-06-26Isolate irrlicht references and use a singleton (#6041)Loïc Blot
* Add Device3D class which will contain IrrlichtDevice interface move getSupportedVideoDrivers to Device3D Add Device3D singleton & use it in various places Rename Device3D to Rendering engine & add helper functions to various device pointers More singleton work RenderingEngine owns draw_load_screen move draw functions to RenderingEngine Reduce IrrlichtDevice exposure and guienvironment RenderingEngine: Expose get_timer_time() to remove device from guiEngine Make irrlichtdevice & scene manager less exposed * Code style fixes * Move porting::getVideoDriverName, getVideoDriverFriendlyName, getDisplayDensity, getDisplaySize to RenderingEngine Fix XORG_USED macro -> RenderingEngine + create_engine_device from RenderingEngine constructor directly * enum paralax => enum parallax
2017-06-21Cpp11 initializers: last src root changeset (#6022)Loïc Blot
* Cpp11 initializers: last src root changeset Finish to migrate all src root folder files to C++11 constructor initializers
2017-05-04Directional coloured fog: Fix order of SColor componentsparamat
'video::SColor pointcolor' was initialised with order RGBA instead of ARGB. No change in behaviour as 'm_bgcolor' has alpha 255.
2017-05-02Set sky API: Add bool for clouds in front of custom skyboxparamat
Default true. Add 'm_clouds_enabled' bool to sky.h, set from new bool in 'set sky' API. Make 'getCloudsVisible()' depend on 'm_clouds_enabled' instead of 'm_visible' (whether normal sky is visible).
2017-04-30Add clouds APIBen Deutsch
2016-11-08Sky: Draw bottom of the sky box in 'cloudy fog color'Lars Hofhansl
To be identical to the lower half of the skybox sides. Now needed as the skybox base is often seen due to increasingly vertical mapgens.
2016-06-11Sky.cpp: Improve code style. Define sky colours as SColorparamat
2016-06-09Sky: Darker, bluer sky and improved horizon haze at nightparamat
Add new colours 'skycolour_bright_night', 'bgcolour_bright_night' and enable these between sunset end and sunrise start Night sky has same hue as day sky but is darker and more saturated Night horizon haze (bgcolour) is slightly less saturated and slightly brighter than night sky, to be consistent with daytime horizon haze
2016-06-08Sky: Fix sunrisebg texture motion (#4199)Paramat
Top of texture no longer shows above horizon during night and day
2016-02-11v2d & aabbox3d<f32> & sky cleanupsnerzhul
* Sky: rename Box => m_box and inline getBoundingBox * Uniformize aabbox3d<f32> to aabb3f
2015-04-01Move globals from main.cpp to more sane locationsCraig Robbins
Move debug streams to log.cpp|h Move GUI-related globals to clientlauncher Move g_settings and g_settings_path to settings.cpp|h Move g_menuclouds to clouds.cpp|h Move g_profiler to profiler.cpp|h
2015-03-31Move texture_min_size even further down the pipe. Now, textures are ↵Aaron Suen
JIT-upscaled using an image transformation, right at the time they're added to a mesh or particle; images used in 2D elements are left unscaled. This should fix any remaining issues with HUD elements.
2015-03-05Replace std::list to std::vector into tile.cpp (m_texture_trash) and move ↵Loic Blot
tile.hpp to src/client/
2015-01-18Fix use of uninit data in Sky and (potentially) GUIChatConsole constructorsKahrl
Clean up nearby code a bit As a small side effect, it is now possible to add a background texture to the chat console by simply providing background_chat.jpg, it is no longer necessary to also add "console_color =" to minetest.conf.
2014-12-08Make directional fog colors respect tonemapMirceaKitsune
2014-10-19Various uninitialised variable fixesCraig Robbins
sky.cpp: m_bgcolor.getAlpha() was being used before initialised mesh related: m_highlight_mesh_color was being used uninitialised
2014-05-18Add support for interlaced polarized 3d screenssapier
Add (experimental) support for topbottom as well as sidebyside 3d mode
2014-04-25Fix directional fog color in front viewBlockMen
2014-04-21Textureable sun and moon.RealBadAngel
2014-02-01Add player:set_sky() with simple skybox supportPerttu Ahola
2013-12-16Reduce cloud coloring for colored fog and cloud modesapier
2013-12-15Add setting to disable direction dependent fog and sky colorssapier
2013-12-15Directional fog + horizon colors, based on sun & moon positions at sunrise / ↵MirceaKitsune
sunset
2013-08-03Lessen the sky color glitch when quickly turning to look up after looking at ↵Perttu Ahola
ground that contains caves
2012-06-17Properly and efficiently use split utility headersPerttu Ahola
2012-03-27Tune skyboxPerttu Ahola
2012-03-18Fix and tune starsPerttu Ahola
2012-03-18Dynamic sky, fog and cloud colors; sun and moonPerttu Ahola