Gustav Lund
35eb7f2d6a
Rasterizers are now in sync with engine
...
The rasterisers (both GLES3 and GLES2) were calculating their own frame delta time
This fix lets the rasterizers get the frame delta through the draw call
That way any regulations to the frame step from the main script will not cause particle systems to process at a different step than the rest of the Engine.
Remove unused rasterizer storage variable
frame.prev_tick variable were not used anywhere and has been removed
2018-06-05 16:33:02 +02:00
Marcelo Fernandez
3fa352dc9c
canvas_item_add_triangle_array bind fixup
2018-05-08 21:41:41 -03:00
Juan Linietsky
b96cd25305
Merge pull request #18495 from Zylann/partial_texture_update
...
Added partial texture update to VisualServer
2018-05-07 13:20:38 -03:00
Marc Gilleron
c755cced83
Added partial texture update to VisualServer
2018-04-29 03:09:49 +02:00
Crazy-P
e6deba8d19
Fixes logically dead code (Coverity)
...
Fixes reported logically dead codes by Coverity
* image.cpp: Doesn't really need any modification. But to remove the bug
report then we have to move the MAX call away from the for loop
statement.
* rasterizer_gles3.cpp: Removes unnecessary elif condition since it is
checked earlier in the function
* collada.cpp: If stamement never reached due to macro ERR_CONTINUE does
the same.
* navigation_mesh.cpp: Variables should always be null - however, also
checked for the very same condition in their function call. Leaving this
for review (whether the function call is necessary or not)
* path_editor_plugin.cpp: If cancel is true, then it should restore the
edited value to the original provided.
http://docs.godotengine.org/en/3.0/classes/class_editorspatialgizmo.html#class-editorspatialgizmo-commit-handle
* spatial_editor_gizmos.cpp: the very condition of i >= 3 is
predetermined in the if case right before it. Thus case 1 is always '1'
and case 2 is always '-1'
* grid_map_editor.cpp: Same as above in spatial_editor_gizmos.cpp
* voxel_light_baker.cpp: Same as above in spatial_editor_gizmos.cpp
* visual_server.cpp: Same as above in spatial_editor_gizmos.cpp
* visual_script_expression.cpp: char '-' is already true in the switch
case mechanism. Thus it can never reach to default case.
* particles.cpp: Case 'PARAM_MAX' is unreachable due to index checking
right before the switch execution.
* shader_language.cpp: Invalid index is handled in switch default case.
`type < TYPE_FLOAT && type > TYPE_VEC4` -> `(type < TYPE_FLOAT || type > TYPE_VEC4`)
Fixes the "always false problem" in TODO comment.
2018-04-21 22:35:23 +08:00
Poommetee Ketson
eb63f7b071
[DOCS] Sync classref with current source
2018-02-25 15:14:25 +07:00
Rémi Verschelde
fd92e571ac
Readd VS.sync and VS.draw to keep compatibility
...
Those are deprecated as VS.force_sync and VS.force_draw do the same and more explicitly,
but we cannot remove them without marking them as deprecated before that.
Fixes issue introduced in #15892 .
2018-02-19 10:43:07 +01:00
Rémi Verschelde
574133e4e0
Merge pull request #15892 from Zylann/add_missing_vs_bindings
...
Added all missing VisualServer bindings
2018-02-14 16:05:49 +01:00
Marc Gilleron
8dc62bbc96
Fix VisualServer.free conflicting with Object.free
2018-01-25 00:23:31 +01:00
Marc Gilleron
e415fd05bb
Added all missing VisualServer bindings
...
- Added bindings for multimesh, immediate, skeleton, light, reflection probe, gi probe, lightmap, particles, camera, environment, scenario, instance
- Removed draw and sync, were duplicates of force_* equivalents
- Bumped binders max arguments from 11 to 13
- Wrote some wrappers as not all methods were variant-friendly
2018-01-20 16:59:26 +01:00
Ariel Manzur
e2b50e1abb
improves portability with some compilers
2018-01-18 19:16:34 -03:00
Rémi Verschelde
9f479f096c
Fix typos in code and docs with codespell
...
Using v1.11.0 from https://github.com/lucasdemarchi/codespell
2018-01-18 22:01:42 +01:00
Rémi Verschelde
e4213e66b2
Add missing copyright headers and fix formatting
...
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-05 01:22:23 +01:00
Duy-Nguyen TA
322cb08dd9
Fix macOS and other builds after #15299
...
Commit ammended by @akien-mga to fix more platforms.
2018-01-04 19:48:05 +01:00
Rémi Verschelde
f9f6f250e6
Merge pull request #15191 from Jerome67000/z_renaming
...
renames "z" Node2D property to "z_index"
2018-01-04 00:41:45 +01:00
Jerome67000
42ae3525a3
#15078 renamed "z" -> "z_index" property in Node2D
2018-01-03 13:02:26 +01:00
Rémi Verschelde
b50a9114b1
Update copyright statements to 2018
...
Happy new year to the wonderful Godot community!
2018-01-01 14:40:47 +01:00
Juan Linietsky
652c98a7be
Add epic hack so vsync can be toggled in run-time from script. Fixes #14458 .
...
Call needs to be routed via visual server to reach the proper thread.
2017-12-16 17:11:02 -03:00
Rémi Verschelde
d03f35f1bc
Bind TextEdit.deselect and update documentation
2017-12-16 21:08:31 +01:00
Rémi Verschelde
cb4c0c630f
doc: Sync classref with current source
2017-11-27 23:37:47 +01:00
Rémi Verschelde
ce89b20b20
Merge pull request #13228 from rminderhoud/weights
...
Fix read bug in compressed bone weights
2017-11-26 21:04:48 +01:00
Juan Linietsky
22415e5a31
Merge pull request #12572 from RandomShaper/onion-skinning
...
Onion skinning
2017-11-26 15:13:35 -03:00
Juan Linietsky
bc2e8d99e5
Made Vector::ptrw explicit for writing, compiler was sometimes using the wrong function,
...
leading to unnecesary copy on writes and reduced performance.
2017-11-25 00:09:40 -03:00
Pedro J. Estébanez
3aa79fc1a3
Add ability to opt-out buffer swapping in VS::draw()
2017-11-25 02:18:28 +01:00
Ralph Minderhoud
2399d11e27
Fix read bug in compressed bone weights
2017-11-23 21:52:14 -06:00
Ferenc Arn
d28763a4c1
Rename Rect3 to AABB.
...
Fixes #12973 .
2017-11-17 11:01:41 -05:00
Juan Linietsky
6277e6d40a
Ability to update parts of an array, and set arrays as dynamic draw
2017-11-14 17:26:35 -03:00
Poommetee Ketson
9cadb9e5f3
Bind unbound enums, rearrange some by value
2017-10-22 01:58:02 +07:00
Leon Krause
cf3919b228
Bind some VisualServer functions
2017-10-20 00:24:49 +02:00
Saracen
d030e6ee75
Expose 'request_frame_drawn_callback' to script.
2017-10-14 16:32:27 +01:00
Julian Murgia
819d9339c3
Bind VisualServer.sync() method to GDScript
...
This function is needed in Escoria's resource queue (https://github.com/godotengine/escoria/blob/master/device/globals/resource_queue.gd#L94 )
2017-10-11 17:45:19 +02:00
SaracenOne
92bbd2d713
Script access to formatted arrays and blend_arrays in meshes.
2017-09-11 06:53:34 +01:00
Gustav Lund
417113edf3
Renderer/Simulator flags
...
Now hopefully with correct code style
2017-08-30 14:22:43 +02:00
Rémi Verschelde
7ad14e7a3e
Dead code tells no tales
2017-08-27 22:13:45 +02:00
Rémi Verschelde
bd282ff43f
Use HTTPS URL for Godot's website in the headers
2017-08-27 14:16:55 +02:00
Juan Linietsky
588ffbc08a
Fixed wrong usage of has_no_area function, closes #10434
2017-08-19 14:54:04 -03:00
Juan Linietsky
72be8876ea
Properly manage drawing of primitives when they lack an area, fixes #8930
2017-08-18 15:12:48 -03:00
Ignacio Etcheverry
78619a5866
Fixes method definitions with extra number of arguments
2017-08-10 07:17:51 +02:00
Ignacio Etcheverry
2f290038d6
Removes type information from method binds
2017-08-10 07:17:50 +02:00
Juan Linietsky
df573f5c3a
-Restored Sprite3D to working function, fixes #2061 , fixes #9738
...
-Restored an alpha scissor property in Material
2017-08-08 17:23:44 -03:00
Poommetee Ketson
0154098531
Fix various property not found errors
2017-07-26 20:03:13 +07:00
Rémi Verschelde
374cffaa11
Merge pull request #9764 from Noshyaar/pr-fix2
...
Add object type hint for docs
2017-07-24 08:07:32 +02:00
Poommetee Ketson
2777f81d29
Add object type hint for docs
2017-07-23 18:57:03 +07:00
Juan Linietsky
772485cdb3
Several changes to better run in mobile.
2017-07-22 14:08:17 -03:00
Juan Linietsky
25678b1876
-Renamed GlobalConfig to ProjectSettings, makes more sense.
...
-Added system for feature overrides, it's pretty cool :)
2017-07-19 17:06:03 -03:00
Juan Linietsky
bbada82f80
-Reorganized all properties of project settings (Sorry, Again).
...
(Lot's of bloat accumulated, so it was time for clean up.)
-Made EditorSettings and ProjectSettings search more useful (search in sections too)
2017-07-17 22:18:58 -03:00
Juan Linietsky
e63c64e256
Clean up normalmapping, make sure tangents are imported correctly.
2017-07-03 10:45:34 -03:00
Poommetee Ketson
e3998528e0
BuildSystem: generated files have .gen.extension
2017-06-25 07:55:01 +07:00
Thomas Herzog
bfac7c476d
Merge pull request #8629 from hikari-no-yume/Sprite3D_double_sided_flag_master
...
Add double-sided flag to SpriteBase3D [master]
2017-06-19 23:46:54 +02:00
Rémi Verschelde
569a2b5bd7
Merge pull request #9230 from supagu/normals-fix
...
Fixed decompression of normals
2017-06-17 13:03:48 +02:00
Fabian Mathews
ff0ac9d916
Fixed decompression of vertex colors
2017-06-17 10:47:25 +09:30
Juan Linietsky
b19225bfce
-Fix freezes caused by etccomp2, closes #9183
...
-Normalmaps are now detected and imported as RGTC, both in S3TC and ETC2, this improves their quality.
2017-06-16 21:49:37 -03:00
Fabian Mathews
29d0a21011
Fixed decompression of normals
2017-06-17 09:43:13 +09:30
Marc Gilleron
af9fd6f44a
Fixed compilation on Windows + removed debug print
2017-06-12 01:58:57 +02:00
alexholly
935f730170
renamed all Rect3.pos to Rect3.position
2017-06-09 15:54:02 +02:00
alexholly
a3c90b0293
renamed all Rect2.pos to Rect2.position
2017-06-04 02:09:17 +02:00
Juan Linietsky
98a3296702
Removal of Image from Variant, converted to a Resource.
2017-05-17 07:37:45 -03:00
Andrea Faulds
fd5b929831
Add double-sided flag to SpriteBase3D ( fixes #8007 )
2017-05-02 21:03:17 +01:00
Rémi Verschelde
df61dc4b2b
Add "Godot Engine contributors" copyright line
2017-04-08 00:11:42 +02:00
Rémi Verschelde
5dbf1809c6
A Whole New World (clang-format edition)
...
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-03-05 16:44:50 +01:00
Juan Linietsky
de0045cf1b
-renamed globals.h to global_config.cpp (this seems to have caused a few modified files)
...
-.pck and .zip exporting redone, seems to be working..
2017-02-21 00:06:30 -03:00
Juan Linietsky
da11d6d9e8
Many fixes to make exported scenes work better, still buggy.
2017-02-15 08:34:02 -03:00
Hein-Pieter van Braam
411ee71b4d
Rename the _MD macro to D_METHOD
...
This new name also makes its purpose a little clearer
This is a step towards fixing #56
2017-02-13 12:50:02 +01:00
Rémi Verschelde
2a0ddc1e89
Style: Various fixes to play nice with clang-format
2017-01-16 08:49:52 +01:00
Rémi Verschelde
93ab45b6b5
Style: Fix whole-line commented code
...
They do not play well with clang-format which aligns the `//` part
with the rest of the code block, thus producing badly indented commented code.
2017-01-14 14:52:23 +01:00
Juan Linietsky
bc26f90581
Type renames:
...
Matrix32 -> Transform2D
Matrix3 -> Basis
AABB -> Rect3
RawArray -> PoolByteArray
IntArray -> PoolIntArray
FloatArray -> PoolFloatArray
Vector2Array -> PoolVector2Array
Vector3Array -> PoolVector3Array
ColorArray -> PoolColorArray
2017-01-11 00:52:51 -03:00
Juan Linietsky
2ab83e1abb
Memory pool vectors (DVector) have been enormously simplified in code, and renamed to PoolVector
2017-01-07 18:26:38 -03:00
Juan Linietsky
118eed485e
ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to Variant.
...
All usages of "type" to refer to classes were renamed to "class"
ClassDB has been exposed to GDScript.
OBJ_TYPE() macro is now GDCLASS()
2017-01-02 23:03:46 -03:00
Rémi Verschelde
3f3f5a5359
Merge remote-tracking branch 'origin/gles3' into gles3-on-master
...
Various merge conflicts have been fixed manually and some mistakes
might have been made - time will tell :)
2017-01-02 21:52:26 +01:00
Rémi Verschelde
db46a34418
Revert "Bindings: Fix missing default value"
...
This reverts commit 068b58b3ce
.
Same rationale as previous reverts.
2017-01-02 20:42:32 +01:00
Rémi Verschelde
b1e4c04cdc
Revert "bind method canvas_item_set_sort_children_by_y"
...
This reverts commit 1f9e16119f
.
Same rationale as previous revert.
2017-01-02 20:39:44 +01:00
Rémi Verschelde
86b0669f4c
Revert "Add/expose VisualServer::get_default_clear_color()"
...
This reverts commit 753ba67d65
,
in preparation from the merge of the gles3 branch, as the VisualServer
code changed too much to port this commit over during merge conflicts
resolution. It could be readded afterwards.
2017-01-02 20:32:52 +01:00
Rémi Verschelde
c7bc44d5ad
Welcome in 2017, dear changelog reader!
...
That year should bring the long-awaited OpenGL ES 3.0 compatible renderer
with state-of-the-art rendering techniques tuned to work as low as middle
end handheld devices - without compromising with the possibilities given
for higher end desktop games of course. Great times ahead for the Godot
community and the gamers that will play our games!
2017-01-01 22:03:33 +01:00
reduz
0d4abf2aa3
fixed a horrible bug on Windows AMD, scenes saved until now in this branch
...
are no longer valid :(
2016-12-24 16:23:30 -03:00
Juan Linietsky
a732708b9d
Blend shapes using transform feedback (GPU)
2016-11-24 20:46:55 -03:00
Juan Linietsky
7cf8d75cf8
WIP immediates and proper buffers swapping
2016-11-23 07:04:55 -03:00
Juan Linietsky
943d27f46d
Instancing is working! (hooray)
2016-11-22 01:26:56 -03:00
Juan Linietsky
70d095d8f2
Skeletons are working now.
2016-11-21 19:03:39 -03:00
Juan Linietsky
cacf9ebb7f
all light types and shadows are working, pending a lot of clean-up
2016-11-09 23:55:06 -03:00
Juan Linietsky
53d8f2b1ec
PBR more or less working, still working on bringing gizmos back
2016-10-27 11:50:26 -03:00
Juan Linietsky
4428115916
Everything returning to normal in 3D, still a long way to go
...
-implemented the scene part of visual server and rasterizer, objects without lighting and material are rendererd only
2016-10-19 11:14:41 -03:00
Pedro J. Estébanez
753ba67d65
Add/expose VisualServer::get_default_clear_color()
2016-10-13 11:24:55 +02:00
Ignacio Etcheverry
fea1fb0925
Merge pull request #6761 from neikeq/pr-missing-defval
...
Bindings: Fix missing default value
2016-10-09 23:58:58 +02:00
Ignacio Etcheverry
068b58b3ce
Bindings: Fix missing default value
2016-10-09 23:51:08 +02:00
Ariel Manzur
1f9e16119f
bind method canvas_item_set_sort_children_by_y
2016-10-05 03:48:54 -03:00
Juan Linietsky
22d83bc9f6
Begining of GLES3 renderer:
...
-Most 2D drawing is implemented
-Missing shaders
-Missing all 3D
-Editor needs to be set on update always to be used, otherwise it does not refresh
-Large parts of editor not working
2016-10-03 21:35:16 +02:00
Rémi Verschelde
ce7e2ae4f4
draw_line: Properly bind antialiased argument
2016-08-31 08:57:21 +02:00
Rémi Verschelde
f40f360a2c
Remove unused variables (fourth pass) + dead code
...
Also fix a potential regression from 3fcb9b1ec1
.
2016-07-08 16:47:55 +02:00
Juan Linietsky
64b4253dbf
changed visual server free() to free_rid() like in the other servers. Fixes #4917
2016-06-13 22:12:56 -03:00
Geequlim
fdf914e53e
Add texture region support for stylebox render
2016-06-05 00:45:53 +08:00
Juan Linietsky
89d87294db
ability to shrink all images x2 on load
...
this is for extreme cases when running on devices with very low video
memory, so you can still retain compatibility.
2016-05-04 12:37:07 -03:00
Hubert Jarosz
4a4f247914
remove trailing whitespace
2016-03-09 00:00:52 +01:00
George Marques
5be9ff7b67
Update copyright to 2016 in headers
2016-01-01 11:50:53 -02:00
Ariel Manzur
83f2084cb8
testing patch for aligned reads by webp in javascript
2015-12-22 09:19:12 -03:00
Juan Linietsky
b524b40fdc
-fixed many memory initialization issues
...
-fixed deadlock on previews thread
-fixed compilation errors on unix
2015-06-06 22:06:58 -03:00
Juan Linietsky
59154cccf9
-Changed Godot exit to be clean.
...
-Added more debug information on memory cleanliness on exit (if run with -v)
-Fixed several memory leaks, fixes #1731 , fixes #755
2015-04-20 19:38:02 -03:00
Juan Linietsky
fdaa2920eb
Updated copyright year in all headers
2015-04-18 14:38:54 -03:00
Juan Linietsky
d148a03848
-Fixes bug in ShaderGraph material, when uniform property is not used, fixes #1634 and #1610
2015-04-09 00:29:21 -03:00
Carl Olsson
c5bf43f6eb
Working TileMap tile transpose transform.
2015-02-02 21:27:48 +10:00
Gerold31
6532aa627c
Fix some more incorrect bindings
2014-10-26 15:07:54 +01:00