qarmin
3b703d6707
Small fixes, mostly dupicated code
...
(cherry picked from commit 856a8226a5
)
2019-09-24 09:00:45 +02:00
clayjohn
ebaa06b2be
fixes bug when setting projection matrix
...
(cherry picked from commit e37d723695
)
2019-07-17 09:47:32 +02:00
Hein-Pieter van Braam-Stewart
d4704234b3
Don't try to statically allocate 2x 8193 pointers
...
Maximum stack size is only 8KiB, this will try to allocate 8193 *
sizeof(void*) * 2 = 131088 bytes on the stack. This causes a crash in
some cases.
(cherry picked from commit c52f890626
)
2019-07-03 16:29:10 +02:00
Bastiaan Olij
2020f43261
Added eye_height, changed description and fixed size of viewport issue
...
(cherry picked from commit e0b703e3fe
)
2019-04-20 20:21:02 +02:00
marxin
0e781aeacb
Fix #25641 by not shifting a negative value.
2019-03-05 21:18:46 +01:00
Juan Linietsky
34dd772054
Properly redraw if something animated is visible
2019-03-03 13:43:54 -03:00
Juan Linietsky
2f32a75d2e
Skeletons can now choose between using local or world coords for processing, fixes #26468
2019-03-03 12:24:00 -03:00
Rémi Verschelde
467f18b738
Fix style issues from recent commits
2019-03-03 12:45:20 +01:00
Juan Linietsky
1b8f56c099
Clean up and fix some situations where triangulation may fail, closes #26366
2019-03-02 12:04:24 -03:00
Juan Linietsky
3f681b0681
Clean up blend shape support in GLES2 and GLES3.
2019-03-01 16:01:44 -03:00
Rémi Verschelde
09a541edd0
Merge pull request #26287 from JFonS/fix_25992
...
Use item_shadow_mask for LightOccluder2D culling
2019-02-27 21:28:31 +01:00
Juan Linietsky
ffb9f342a5
Ensure implicit conversions for scalar constants work in shaders, closes #26239
2019-02-26 23:21:37 -03:00
JFonS
1c3a1165e5
Use item_shadow_mask for LightOccluder2D culling
2019-02-25 22:58:14 +01:00
Juan Linietsky
fd68bb2596
-Treat scalar conversions when calling functions as error, closes #24261
...
-Make shader editor display errors if exist when just opening it
-Make ShaderMaterial not lose parameters if opened in error.
2019-02-23 17:55:09 -03:00
Rémi Verschelde
24097811e4
Fix invalid change from CLAMP to MAX in #26099
...
CLAMP limits the value between the two bounds, so for unsigned ints
it should be replaced by MIN(val, max), not MAX.
The issue in voxel_light_baker.cpp was fixed in 4f697f7
.
Fixes #26170 .
2019-02-23 12:08:21 +01:00
marxin
7de7f0ef17
Fix all -Wtype-limits warnings.
2019-02-21 19:34:35 +01:00
marxin
8d51618949
Add -Wshadow=local to warnings and fix reported issues.
...
Fixes #25316 .
2019-02-20 19:44:12 +01:00
JFonS
964338b06b
Fix update of canvas AABB with update_when_visible
...
Ensure the AABB of canvas items is always updated when
`update_when_visible` is enabled.
2019-02-17 20:28:00 +01:00
Rémi Verschelde
5fc86026ca
Fix typos with codespell
...
Using codespell 1.14.0.
Method:
```
$ cat > ../godot-word-whitelist.txt << EOF
ang
doubleclick
lod
nd
numer
que
te
unselect
EOF
$ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"
$ git diff // undo unwanted changes
```
2019-02-13 09:23:29 +01:00
Rémi Verschelde
75dae1b9a9
Drivers, main, servers: Ensure classes match their header filename
...
Renamed:
- `drivers/alsamidi/alsa_midi.h` -> `midi_driver_alsamidi.h`
(same for `coremidi` and `winmidi`)
- `main/timer_sync.h` -> `main_timer_sync.h`
- `servers/visual/visual_server_global.h` -> `visual_server_globals.h`
2019-02-12 14:39:47 +01:00
Rémi Verschelde
b7cc2bb1e2
Core: Ensure classes match their header filename
...
Also drop some unused files.
Renamed:
- `core/dvector.h` -> `pool_vector.h`
- `core/io/resource_import.h` -> `resource_importer.h`
- `core/sort.h` -> `sort_array.h`
- `core/string_db.h` -> `string_name.h`
Dropped:
- `core/allocators.h`
- `core/os/shell.h`
- `core/variant_construct_string.cpp`
2019-02-12 13:34:25 +01:00
Hein-Pieter van Braam
d308eb091a
Fix many asan and ubsan reported issues
...
This allows most demos to run without any ubsan or asan errors. There
are still some things in thirdpart/ and some things in AudioServer that
needs a look but this fixes a lot of issues. This should help debug less
obvious issues, hopefully.
This fixes #25217 and fixes #25218
2019-01-30 06:43:56 +01:00
Rémi Verschelde
d0f289b0d9
Merge pull request #25314 from marxin/fix-24417-class-memaccess
...
Fix class memaccess
2019-01-27 21:32:26 +01:00
Juan Linietsky
0c60d4c682
Properly get proxy texture size for canvas light, fixes #17067
2019-01-27 16:57:05 -03:00
Juan Linietsky
1253b9c038
Add a check to help find transforms that are passes invalid.
2019-01-26 19:10:11 -03:00
marxin
3e4dab5386
Use placement new in visual_server_scene.cpp ( #24417 ).
2019-01-25 12:41:55 +01:00
Juan Linietsky
46af4b0a4b
Changes to GLES2 renderer to not use cube shadows if not available, fixes #25132
2019-01-22 10:05:23 -03:00
Rémi Verschelde
769341e180
Cleanup after @reduz :)
...
Fixes #25172 .
2019-01-21 11:12:55 +01:00
Juan Linietsky
7478f468b2
Fixes to 2D lights, closes #24750
2019-01-17 10:40:36 -03:00
Bojidar Marinov
d1406bfeb4
Fix a nested ysort invalid memory read again
...
Fixes #24755
2019-01-09 14:22:54 +02:00
Rémi Verschelde
1504c96112
Merge pull request #24539 from BastiaanOlij/override_gl_position
...
Override GL_position
2019-01-04 15:40:05 +01:00
Rémi Verschelde
b16c309f82
Update copyright statements to 2019
...
Happy new year to the wonderful Godot community!
2019-01-01 12:58:10 +01:00
Bastiaan Olij
c1a53d8b06
Always treat exponent as float
2018-12-30 13:10:58 +01:00
Bastiaan Olij
9f266cf7e5
Override GL_position
2018-12-29 23:56:50 +11:00
Bastiaan Olij
f3dd3c0830
Adding option to re-orient our sky
2018-12-15 19:41:34 +11:00
Rémi Verschelde
ac87560fda
Merge pull request #23469 from clayjohn/fragment_camera_matrix
...
Added CAMERA_MATRIX to fragment shader
2018-12-12 13:46:58 +01:00
Rémi Verschelde
37e198c320
Merge pull request #23483 from clayjohn/fragment_camera_view
...
Make VIEW vector available in fragment shader
2018-12-11 20:44:41 +01:00
clayjohn
2042d6214e
make VIEW vector available in fragment
2018-12-11 09:44:38 -08:00
Rémi Verschelde
0a9a2b1d62
Merge pull request #24163 from clayjohn/light_uv_const
...
Make LIGHT_UV constant in canvas_item light shader
2018-12-11 15:25:18 +01:00
Bojidar Marinov
02b569297e
Fix error when adding children to YSort
...
If it weren't for this warning, it would have crashed in release builds.
Fix #23889 , fixup 6b8d6e3b07
2018-12-04 21:11:40 +02:00
clayjohn
4740dd343e
make LIGHT_UV constant
2018-12-04 10:10:47 -08:00
Juan Linietsky
af8d941c55
Added luminance capping to avoid glitches on small dots. closes #17996
2018-11-28 01:22:20 -03:00
Kanabenki
33a7fae127
Allow *= operator between vec and mat types in shaders
2018-11-24 18:57:29 +01:00
Juan Linietsky
631cf676c3
Removed noperspective (not in GLSL ES 3.0), do not write smooth if not specified. Fixes #20435
2018-11-21 23:07:09 -03:00
Rémi Verschelde
3df9aa3339
Merge pull request #23878 from bojidar-bg/23775-ysort-crash
...
Fix YSort crash when removing a child
2018-11-21 15:35:03 +01:00
Bojidar Marinov
d2750ce593
Fix YSort crash when removing a child
...
Fixup of 8e4837f357
Fixes #23775
2018-11-21 15:01:11 +02:00
Juan Linietsky
d304228003
Do not draw particles if they are not processing at all, fixes #19507
2018-11-19 20:34:29 -03:00
JFonS
fb92c7b0fa
Use hint_color when getting shader default params
2018-11-16 12:20:23 +01:00
Juan Linietsky
d2e642b2dc
Proper validation of out arguments in built-in shader functions, closes #16244
2018-11-14 18:56:19 -03:00
Juan Linietsky
55f5f4757e
Merge pull request #23248 from dlasalle/fog
...
Add parameters for fog end depth and use alpha as density.
2018-11-14 10:24:55 -03:00