summaryrefslogtreecommitdiff
path: root/scene/2d/particles_2d.cpp
AgeCommit message (Collapse)Author
2020-02-25Variant: Added 64-bit packed arrays, renamed Variant::REAL to FLOAT.Juan Linietsky
- Renames PackedIntArray to PackedInt32Array. - Renames PackedFloatArray to PackedFloat32Array. - Adds PackedInt64Array and PackedFloat64Array. - Renames Variant::REAL to Variant::FLOAT for consistency. Packed arrays are for storing large amount of data and creating stuff like meshes, buffers. textures, etc. Forcing them to be 64 is a huge waste of memory. That said, many users requested the ability to have 64 bits packed arrays for their games, so this is just an optional added type. For Variant, the float datatype is always 64 bits, and exposed as `float`. We still have `real_t` which is the datatype that can change from 32 to 64 bits depending on a compile flag (not entirely working right now, but that's the idea). It affects math related datatypes and code only. Neither Variant nor PackedArray make use of real_t, which is only intended for math precision, so the term is removed from there to keep only float.
2020-02-11Texture refactorJuan Linietsky
-Texture renamed to Texture2D -TextureLayered as base now inherits 2Darray, cubemap and cubemap array -Removed all references to flags in textures (they will go in the shader) -Texture3D gone for now (will come back later done properly) -Create base rasterizer for RenderDevice, RasterizerRD
2020-01-01Update copyright statements to 2020Rémi Verschelde
Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
2019-09-25Added some obvious errors explanationsqarmin
2019-07-02Fix various memory leaks and errorsBojidar Marinov
2019-06-27Merge pull request #29937 from clayjohn/particles-one-shot-bugRémi Verschelde
Update emitting status on one-shot particles
2019-06-25update emitting status on one-shot particlesclayjohn
2019-06-21properly set emitting when particles restartclayjohn
2019-02-09Warn when using GPU particles with GLES2Rémi Verschelde
Closes #25733.
2019-01-01Update copyright statements to 2019Rémi Verschelde
Happy new year to the wonderful Godot community!
2018-11-13Make 2D particles work OOTB (again)JFonS
2018-11-04Remove animation loop from ParticlesMaterial + improvements to CPUParticles2DJFonS
Remove animation loop from ParticlesMaterial and move it to SpatialMaterial for 3D particles and Particles2D for the 2D case. Added animation to CPUParticles2D as well as the "Convert to CPUParticles2D" to the PAarticles2D menu.
2018-09-04Move ParticlesMaterial code to its own resource fileRémi Verschelde
It's shared by both 2D and 3D particles (+ CPU ones), so it makes sense to have as a common resource. It also allowed to disable compilation of Particles (3D) when using 'disable_3d'. Also cleaned up includes in SpatialEditorGizmos and some other places, as well as dropped dead code in material_editor_plugin.cpp.
2018-08-24Particles: Allow speed_scale at 0 in property hint, equivalent to pauseRémi Verschelde
Supersedes and closes #21193.
2018-08-17Particles2D: fix editing Visibility Rect from inspectorNatrim
+ renamed generate_aabb to generate_visibility_rect to prevent future confusions
2018-05-16Allow editing of some unbound properties when hinted (or no range hinted)Juan Linietsky
2018-01-05Add missing copyright headers and fix formattingRémi Verschelde
Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
2018-01-01Update copyright statements to 2018Rémi Verschelde
Happy new year to the wonderful Godot community!
2017-12-23Set particles emitting to false when particles finish emitting with one-shot ↵MrCdK
enabled
2017-12-06Particles2D: Fix normal map rid.Andreas Haas
Looks like a Copy & Paste error, fixes #14334.
2017-11-17Rename Rect3 to AABB.Ferenc Arn
Fixes #12973.
2017-08-27Use HTTPS URL for Godot's website in the headersRémi Verschelde
2017-08-21Merge pull request #10351 from neikeq/enums-are-for-the-weakJuan Linietsky
ClassDB: Provide the enum name of integer constants
2017-08-20ClassDB: Provide the enum name of integer constantsIgnacio Etcheverry
2017-08-20Merge pull request #10319 from neikeq/pr-engine-editor-hintJuan Linietsky
Adds Engine::is_editor_hint() method
2017-08-19Removes editor_hint from SceneTreeIgnacio Etcheverry
2017-08-12Disabling Particles::one_shot restarts emissionZher Huei Lee
Fixes #10181
2017-08-10Removes type information from method bindsIgnacio Etcheverry
2017-08-07Ability to pause particles, closes #3675Juan Linietsky
2017-08-05Initialize Particles2D draw order propertyL. Krause
2017-06-25Usability improvements for folding. Unfortunately SpatialMaterial broke ↵Juan Linietsky
compatibility.
2017-06-25Ability to restart particle system with a function callJuan Linietsky
2017-06-22Properly exposed material types everywhere.Juan Linietsky
2017-06-22Fix tools=no buildRémi Verschelde
This house is falling apart when I'm not around...
2017-06-212D GPU Particles working..Juan Linietsky
2017-06-14renamed occurances of ColorRamp with GradientKarroffel
ColorRamp got renamed to Gradient recently, reduz missed some occurances though.
2017-06-04renamed all Rect2.pos to Rect2.positionalexholly
2017-05-28-Added .hdr format supportJuan Linietsky
-Added default environment editor setting -Added environment created by default in new projects -Removed default light and ambient from spatial editor, to make the editor more PBR compliant
2017-04-09Merge pull request #8321 from RandomShaper/zero-preprocess-particles2dRémi Verschelde
Allow zero preprocess time for Particles2D
2017-04-09Particles2D: Fix flip property (again).Andreas Haas
should have flipped the dst_rect..
2017-04-08Allow zero preprocess time for Particles2DPedro J. Estébanez
2017-04-08Add "Godot Engine contributors" copyright lineRémi Verschelde
2017-03-05A Whole New World (clang-format edition)Rémi Verschelde
I can show you the code Pretty, with proper whitespace Tell me, coder, now when did You last write readable code? I can open your eyes Make you see your bad indent Force you to respect the style The core devs agreed upon A whole new world A new fantastic code format A de facto standard With some sugar Enforced with clang-format A whole new world A dazzling style we all dreamed of And when we read it through It's crystal clear That now we're in a whole new world of code
2017-02-28 Various fixes detected using PVS-Studio static analyzer.Thaer Razeq
- Add FIXME tags comments to some unfixed potential bugs - Remove some checks (always false: unsigned never < 0) - Fix some if statements based on reviews. - Bunch of missing `else` statements
2017-02-27Use the common PRNG in 2D particles code.Ferenc Arn
Replaces the custom PRNG used by 2D particles code with a wrapper for the PRNG located under core/math.
2017-02-27Merge pull request #7897 from RandomShaper/particles2d-process-modeRémi Verschelde
Add process mode option to Particles2D
2017-02-27Add process mode option to Particles2DPedro J. Estébanez
2017-02-25Add emission_finished signal to Particles2DBojidar Marinov
(Also remove some Particles2D::testee method, which was unused) Resolves #3963
2017-02-13Rename the _MD macro to D_METHODHein-Pieter van Braam
This new name also makes its purpose a little clearer This is a step towards fixing #56
2017-02-13Remove use of _SCS from ADD_METHODHein-Pieter van Braam
This saves typing and is a step towards fixing #56