aboutsummaryrefslogtreecommitdiff
path: root/src/clouds.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
2017-08-20Modernize code: very last fixes (#6290)Loïc Blot
Last modernization fixes
2017-08-17clientobject, clouds, collision, clientsimpleobject: code modernization (#6260)Loïc Blot
* clientobject, clouds, collision, clientsimpleobject: code modernization * use range-based for loops * simplify some tests * various code style fixes * use emplace_back instead of push_back when necessary * use auto on some iterators * use default operator when needed * unroll v3s16 creation on collisionMoveSimple
2017-08-12Remove cloud_height settingBen Deutsch
With the cloud API, the cloud_height setting has become obsolete and replaceable by a mod. It, and supporting code, can be removed.
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-16C++11 patchset 9: move hardcoded init parameters to class definitions (part ↵Loïc Blot
1) (#5984) * C++11 patchset 9: move hardcoded init parameters to class definitions C++11 introduced the possibility to define the default values directly in class definitions, do it on current code Also remove some unused attributes * CollisionInfo::bouncy * collisionMoveResult::collides_xy * collisionMoveResult::standing_on_unloaded * Clouds::speed * More constructor cleanups + some variables removal * remove only write guiFormSpecMenu::m_old_tooltip * move header included inside defintions in genericobject.h * remove some unused since years exception classes * remove unused & empty debug_stacks_init * remove unused & empty content_nodemeta_serialize_legacy * remove forgotten useless bool (bouncy) in collision.cpp code
2017-05-05Clouds API: Fix yellow clouds at dawn and dusk (#5707)Paramat
2017-05-04Clouds: Fix reddish clouds. Add missing alpha updateparamat
Fix accidental swap of red and blue components that caused reddish clouds Add missing update of alpha in remoteplayer.cpp
2017-04-30Add clouds APIBen Deutsch
2016-02-11v2d & aabbox3d<f32> & sky cleanupsnerzhul
* Sky: rename Box => m_box and inline getBoundingBox * Uniformize aabbox3d<f32> to aabb3f
2015-07-09Settings: pass name to callbacks by referenceest31
Spare some copies.
2015-07-09Update clouds enable_3d_clouds when setting changedest31
2015-05-04Cache enable_3d_clouds flagest31
Small improvement on clouds rendering performance
2015-05-04Clouds: Make cloud area radius settable in .confparamat
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-07Improve Clouds::render mathematicsLoic Blot
2014-10-29Refactor decoration-related codekwolekr
Split up ModApiMapgen::l_register_decoration() Define and make use of CONTAINS() and ARRLEN() macros
2014-03-04Fix rendering glitches when far from the center of the mapNovatux
2013-03-13Add cloud menu background by Krisi, configurable with the menu_clouds option.ShadowNinja
Also add a menuheader, menusplash, menufooter_clouds, and allow HD menu footers. And finally don't git-ignore textures/base/.
2013-02-24Update Copyright YearsSfan5
2013-02-24Change Minetest-c55 to MinetestPilzAdam
2013-01-21Make cloud height user-configurablekwolekr
2012-06-05Clean and optimize clouds.cpp enough to not really contain any of the small ↵Perttu Ahola
amount of non-LGPLv2/later code left
2012-03-18Dynamic sky, fog and cloud colors; sun and moonPerttu Ahola
2012-03-11Clean up log messages everywherePerttu Ahola
2011-11-02Add 3d cloud checkbox in main menu (and rename setting from enable_2d_clouds ↵Perttu Ahola
to enable_3d_clouds)
2011-10-18Add enable_2d_clouds setting for usage on lower-end machinesPerttu Ahola
2011-10-18Improve rendering and fix tiling in mesh generationPerttu Ahola
2011-07-20* by popular request, fewer cloudsNils Dagsson Moskopp
2011-07-19+ fake shading for the volumetric cloudsNils Dagsson Moskopp
2011-07-18+ volumetric clouds (thanks teddydestodes)Nils Dagsson Moskopp
2011-06-07Added an experimental "far view" thing. Doesn't work exactly like it should ↵Perttu Ahola
and not suitable for real use yet, and might never be.
2011-04-30random comment updatesPerttu Ahola
2011-04-29Tweaked clouds a bitPerttu Ahola
2011-04-29added cloudsPerttu Ahola