summaryrefslogtreecommitdiffstats
path: root/editor/plugins/visual_shader_editor_plugin.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Implement CAMERA_VISIBLE_LAYERS as built-in shader variableNumbuhFour2022-12-031-0/+2
|
* Use forward-declarations in big editor classestrollodel2022-11-291-5/+5
|
* Merge pull request #69128 from Chaosus/vs_fix_custom_nodesRémi Verschelde2022-11-241-0/+2
|\ | | | | | | Fix custom visual shader nodes not being loaded at startup
| * Fix custom visual shader nodes not being loaded at startupYuri Rubinsky2022-11-241-0/+2
| |
* | Cleanup remaining EditorUndoRedoManager usageskobewi2022-11-241-2/+32
|/
* Rename TextureButton set_*_texture methods to set_texture_*Aaron Franke2022-11-191-4/+4
|
* Fix the bounds of varying popup in visual shader editorYuri Rubinsky2022-11-161-15/+7
|
* Unify usage of undo_redo in editorkobewi2022-11-021-5/+5
|
* Merge pull request #67578 from KoBeWi/GEDITORRémi Verschelde2022-10-311-12/+12
|\ | | | | | | Unify usage of GLOBAL/EDITOR_GET
| * Unify usage of GLOBAL/EDITOR_GETkobewi2022-10-181-12/+12
| |
* | Merge pull request #67588 from KoBeWi/if(!GDVIRTUAL_CALL)don'tRémi Verschelde2022-10-311-4/+2
|\ \ | | | | | | | | | Simplify GDVIRTUAL_CALL calls
| * | Simplify GDVIRTUAL_CALL callskobewi2022-10-191-4/+2
| |/
* / Add math operators to Visual Shader node namesAlfred Reinold Baudisch2022-10-261-65/+65
|/ | | | | | | | This change makes it easy, in the "Create Shader Node" dialog, to search for VS nodes by just typing the operator. For example, instead of typing "multiply", you can just type "*" and multiply nodes will be listed. This feature is inspired by Unreal Engine node graph editor's UX. Implements and closes https://github.com/godotengine/godot-proposals/issues/5663
* Polish rendering driver refactor further (take 2)Pedro J. Estébanez2022-10-111-1/+1
|
* Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-151/+151
| | | | change warnings=all to use /W4.
* Clean up canvas light shader API.clayjohn2022-09-281-0/+3
| | | | | Expose LIGHT_ENERGY and LIGHT_IS_DIRECTIONAL. Add LIGHT_DIRECTION
* Split rendering driver project setting into renderer_name and ↵clayjohn2022-09-191-1/+1
| | | | rendering_driver. To differentiate between a driver (e.g. Vulkan or D3D12) and a renderer (e.g. clustered or mobile renderer).
* Fix category of view_index inputs in the visual shader editorYuri Rubinsky2022-09-131-3/+3
|
* Make `Vector2i` values paired with `EDSCALE` be just `Vector2`Michael Alexsander2022-09-081-1/+1
|
* Remove subcategory parameter from `AddOption` in visual shader editorYuri Rubinsky2022-09-071-517/+517
|
* Rename `uniform` to `parameter` across the engineYuri Rubinsky2022-09-011-218/+218
|
* Rename `CanvasItem.update()` to `queue_redraw()`Micky2022-08-291-1/+1
| | | | | | | | | | Affects a lot of classes. Very thoroughly checked signal connections and deferred calls to this method, add_do_method/add_undo_method calls, and so on. Also renames the internal `_update_callback()` to `_redraw_callback()` for consistency. Just a few comments have also been changed to say "redraw". In CPUParticles2D, there was a private variable with the same name. It has been renamed to `do_redraw`.
* Revert "Remove NOTIFICATION_ENTER_TREE when paired with ↵Rémi Verschelde2022-08-291-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NOTIFICATION_THEME_CHANGED" This reverts commit 4b817a565cab8af648c88cfc7ab6481e86ee3625. Fixes #64988. Fixes #64997. This caused several regressions (#64988, #64997, https://github.com/godotengine/godot/issues/64997#issuecomment-1229970605) which point at a flaw in the current logic: - `Control::NOTIFICATION_ENTER_TREE` triggers a *deferred* notification with `NOTIFCATION_THEME_CHANGED` as introduced in #62845. - Some classes use their `THEME_CHANGED` to cache theme items in member variables (e.g. `style_normal`, etc.), and use those member variables in `ENTER_TREE`, `READY`, `DRAW`, etc. Since the `THEME_CHANGE` notification is now deferred, they end up accessing invalid state and this can lead to not applying theme properly (e.g. for EditorHelp) or crashing (e.g. for EditorLog or CodeEdit). So we need to go back to the drawing board and see if `THEME_CHANGED` can be called earlier so that the previous logic still works? Or can we refactor all engine code to make sure that: - `ENTER_TREE` and similar do not depend on theme properties cached in member variables. - Or `THEME_CHANGE` does trigger a general UI update to make sure that any bad theme handling in `ENTER_TREE` and co. gets fixed when `THEME_CHANGE` does arrive for the first time. But that means having a temporary invalid (and possibly still crashing) state, and doing some computations twice which might be heavy (e.g. `EditorHelp::_update_doc()`).
* Merge pull request #64981 from Chaosus/vs_fixYuri Rubinsky2022-08-281-15/+8
|\
| * Fix category of new added visual shader functionsYuri Rubinsky2022-08-281-15/+8
| |
* | Merge pull request #64885 from Mickeon/rename-tooltip-hintRémi Verschelde2022-08-281-5/+5
|\ \ | |/ |/| Rename `hint_tooltip` to `tooltip_text` & setter getter
| * Rename `hint_tooltip` to `tooltip_text` & setgetMicky2022-08-271-5/+5
| | | | | | | | | | | | | | | | `hint_tooltip` -> `tooltip_text` `set_tooltip` -> `set_tooltip_text` `_get_tooltip` -> `get_tooltip_text` Updates documentation, too.
* | Merge pull request #64248 from paddy-exe/built-in-shader-functionsYuri Rubinsky2022-08-281-0/+16
|\ \
| * | Implement custom non-trivial shader functionsPatrick Exner2022-08-271-0/+16
| |/
* / Remove NOTIFICATION_ENTER_TREE when paired with NOTIFICATION_THEME_CHANGEDAaron Record2022-08-271-4/+5
|/
* Allow using integer varyings with `flat` interpolation modifierYuri Rubinsky2022-08-251-4/+9
|
* Add per-scene UndoRedokobewi2022-08-221-6/+7
|
* Rename EditorPropertyShaderMode to EditorPropertyVisualShaderModeAaron Franke2022-08-151-10/+10
|
* Merge pull request #62454 from Geometror/reflect-refract-vec2-vec4Rémi Verschelde2022-08-071-0/+4
|\ | | | | Allow for vec2/vec4 to be used in reflect and refract
| * Allow vec2 and vec4 for reflect and refractHendrik Brucker2022-08-071-0/+4
| |
* | Rename shader parameter uniform setter/getter methods for consistencyHugo Locurcio2022-08-041-1/+1
| | | | | | | | | | | | `shader_uniform` is now consistenly used across both per-shader and per-instance shader uniform methods. This makes methods easier to find in the class reference when looking for them.
* | Rename visual shader editor setting category for proper capitalizationHugo Locurcio2022-08-031-1/+1
| |
* | Add spatial built-ins (camera-pos, object-pos, camera-eye etc.)Patrick Exner2022-08-021-0/+8
| |
* | Remove `CustomPropertyEditor` completelyYuri Sizov2022-08-011-34/+65
| |
* | Remove Signal connect bindsJuan Linietsky2022-07-291-27/+27
| | | | | | | | | | Remove the optional argument p_binds from `Object::connect` since it was deprecated by Callable.bind(). Changed all uses of it to Callable.bind()
* | Rename RenderingServer global shader uniform methods to be more explicitHugo Locurcio2022-07-281-4/+4
| | | | | | | | | | The `global_shader_uniform` name is longer, but it makes it much easier to find the methods when searching in the class reference.
* | Fix visual shader graph not correctly updating when multiple tabs openedYuri Rubinsky2022-07-161-64/+57
| |
* | Add ok_button_text to AcceptDialog and cancel_button_text to ConfirmationDialogFireForge2022-07-091-3/+3
| |
* | Merge pull request #61459 from reduz/new-shader-editorRémi Verschelde2022-06-201-42/+0
|\ \
| * | Redo the shader editorreduz2022-05-281-42/+0
| | | | | | | | | | | | | | | | | | | | | * Shader editor is permanent (no longer transient). * Can edit multiple files at the same time. Likely fixes many usability issues (please lend me a hand Bugsquad team to identify them).
* | | Merge pull request #61888 from Chaosus/vs_remove_engine_versionRémi Verschelde2022-06-161-21/+0
|\ \ \ | | | | | | | | Remove engine version from visual shader
| * | | Remove engine version from visual shaderYuri Rubinsky2022-06-101-21/+0
| | |/ | |/|
* / | Move duplicate AutoWrap, Overrun and VisibleChar behavior enums to the ↵bruvzg2022-06-161-2/+2
|/ / | | | | | | TextServer.
* | Distinguish Length function name to Length2D/3D/4D in visual shadersYuri Rubinsky2022-06-101-3/+3
| |
* | Merge pull request #61784 from ↵Rémi Verschelde2022-06-071-0/+3
|\ \ | | | | | | | | | | | | Geometror/visualeditors_editorsettings_propagation Fix visual editor settings change propagation