aboutsummaryrefslogtreecommitdiff
path: root/src/clouds.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Modernize code: very last fixes (#6290)Loïc Blot2017-08-201-19/+19
| | | Last modernization fixes
* clientobject, clouds, collision, clientsimpleobject: code modernization (#6260)Loïc Blot2017-08-171-1/+1
| | | | | | | | | | | | * 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
* Remove cloud_height settingBen Deutsch2017-08-121-6/+2
| | | | | | With the cloud API, the cloud_height setting has become obsolete and replaceable by a mod. It, and supporting code, can be removed.
* Fog effect when camera is inside cloudBen Deutsch2017-07-051-19/+38
| | | | | | | | | | | | | | | | | | 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
* Isolate irrlicht references and use a singleton (#6041)Loïc Blot2017-06-261-11/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* C++11 patchset 9: move hardcoded init parameters to class definitions (part ↵Loïc Blot2017-06-161-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | 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
* Clouds API: Fix yellow clouds at dawn and dusk (#5707)Paramat2017-05-051-1/+1
|
* Clouds: Fix reddish clouds. Add missing alpha updateparamat2017-05-041-1/+1
| | | | | Fix accidental swap of red and blue components that caused reddish clouds Add missing update of alpha in remoteplayer.cpp
* Add clouds APIBen Deutsch2017-04-301-40/+50
|
* v2d & aabbox3d<f32> & sky cleanupsnerzhul2016-02-111-1/+1
| | | | | * Sky: rename Box => m_box and inline getBoundingBox * Uniformize aabbox3d<f32> to aabb3f
* Settings: pass name to callbacks by referenceest312015-07-091-1/+1
| | | | Spare some copies.
* Update clouds enable_3d_clouds when setting changedest312015-07-091-6/+19
|
* Cache enable_3d_clouds flagest312015-05-041-3/+4
| | | | Small improvement on clouds rendering performance
* Clouds: Make cloud area radius settable in .confparamat2015-05-041-22/+23
|
* Move globals from main.cpp to more sane locationsCraig Robbins2015-04-011-1/+6
| | | | | | | | | | | | 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
* Improve Clouds::render mathematicsLoic Blot2015-03-071-30/+25
|
* Refactor decoration-related codekwolekr2014-10-291-5/+5
| | | | | Split up ModApiMapgen::l_register_decoration() Define and make use of CONTAINS() and ARRLEN() macros
* Fix rendering glitches when far from the center of the mapNovatux2014-03-041-1/+3
|
* Add cloud menu background by Krisi, configurable with the menu_clouds option.ShadowNinja2013-03-131-2/+4
| | | | | Also add a menuheader, menusplash, menufooter_clouds, and allow HD menu footers. And finally don't git-ignore textures/base/.
* Update Copyright YearsSfan52013-02-241-1/+1
|
* Change Minetest-c55 to MinetestPilzAdam2013-02-241-1/+1
|
* Make cloud height user-configurablekwolekr2013-01-211-2/+1
|
* Clean and optimize clouds.cpp enough to not really contain any of the small ↵Perttu Ahola2012-06-051-86/+85
| | | | amount of non-LGPLv2/later code left
* Dynamic sky, fog and cloud colors; sun and moonPerttu Ahola2012-03-181-41/+163
|
* Clean up log messages everywherePerttu Ahola2012-03-111-3/+0
|
* Add 3d cloud checkbox in main menu (and rename setting from enable_2d_clouds ↵Perttu Ahola2011-11-021-3/+3
| | | | to enable_3d_clouds)
* Add enable_2d_clouds setting for usage on lower-end machinesPerttu Ahola2011-10-181-2/+7
|
* Improve rendering and fix tiling in mesh generationPerttu Ahola2011-10-181-0/+4
|
* * by popular request, fewer cloudsNils Dagsson Moskopp2011-07-201-2/+2
|
* + fake shading for the volumetric cloudsNils Dagsson Moskopp2011-07-191-6/+19
|
* + volumetric clouds (thanks teddydestodes)Nils Dagsson Moskopp2011-07-181-11/+62
|
* Added an experimental "far view" thing. Doesn't work exactly like it should ↵Perttu Ahola2011-06-071-1/+1
| | | | and not suitable for real use yet, and might never be.
* random comment updatesPerttu Ahola2011-04-301-1/+1
|
* Tweaked clouds a bitPerttu Ahola2011-04-291-5/+5
|
* added cloudsPerttu Ahola2011-04-291-0/+157