summaryrefslogtreecommitdiffstats
path: root/scene/3d/visual_instance_3d.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Allow more flexible adjustments of VisualInstance3D Lightmap ScaleHugo Locurcio2024-11-141-3/+45
| | | | | Any floating-point value greater than 0.01 can now be used. Prior to this change, only factors of 1×, 2× and 4× and 8× could be used.
* Fix super call in various `get_configuration_warnings` methodsA Thousand Ships2024-09-051-1/+1
|
* Fixed Timestep Interpolation (3D)Ricardo Buring2024-07-071-3/+75
| | | | | | | Adds 3D fixed timestep interpolation to the rendering server. This does not yet include support for multimeshes or particles. Co-authored-by: lawnjelly <lawnjelly@gmail.com>
* Cleanup unused/underused singleton StringNameskobewi2024-05-141-2/+2
|
* Use Core/Scene stringnames consistentlykobewi2024-05-131-3/+0
|
* Add shorthand for using singleton string nameskobewi2024-05-111-4/+4
|
* Merge pull request #87231 from ↵Rémi Verschelde2024-05-041-0/+9
|\ | | | | | | | | | | Calinou/geometryinstance3d-transparency-warn-mobile-compatibility Show warning for GeometryInstance3D transparency in Mobile/Compatibility
| * Show warning for GeometryInstance3D transparency in Mobile/CompatibilityHugo Locurcio2024-01-151-0/+9
| | | | | | | | This feature is currently only supported when using Forward+.
* | Add Gizmo to display 3D custom AABBBogdan Inculet2024-04-191-0/+1
| |
* | Revert "Update Node::get_configuration_warnings signature"Rémi Verschelde2024-02-171-2/+2
| | | | | | | | This reverts commit d3852deaa450d77edb30df2bb1c77bd7bc45befc.
* | Update Node::get_configuration_warnings signatureRedMser2024-02-081-2/+2
|/
* Add const lvalue ref to container parametersMuller-Castro2024-01-051-1/+1
|
* Remove GI methods in parentheses from light baking optionsDavid Snopek2023-11-221-1/+1
|
* Fill remaining global scope constant descriptionskobewi2023-11-131-2/+2
|
* Sort decals and lights based on camera originclayjohn2023-01-201-0/+12
| | | | | | Also implement sort_offset for decals Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
* One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* Add safety-checks before some servers `free()`Adam Scott2022-12-291-0/+1
|
* Merge pull request #69998 from BastiaanOlij/sorting-pivot-4Rémi Verschelde2022-12-231-0/+26
|\ | | | | | | Added options for sorting transparent objects (port of PR #63040)
| * Added options for sorting transparent objects (port of PR 63040)Bastiaan Olij2022-12-231-0/+26
| |
* | Merge pull request #70114 from clayjohn/custom-aabbRémi Verschelde2022-12-171-2/+12
|\ \ | | | | | | | | | Expose GeometryInstance3D.custom_aabb property
| * | Expose GeometryInstance3D.custom_aabb propertyclayjohn2022-12-151-2/+12
| |/
* / Fix the update of the inspector when instance shader uniform has changedYuri Rubinsky2022-12-151-0/+7
|/
* Some fixes for instance shader parametersYuri Rubinsky2022-11-091-15/+15
|
* Fix typo in method of visual_instance_3dPatrick Siemsen2022-11-031-2/+2
|
* 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
| |
* | Remove the global space `get_transformed_aabb` helper methodAaron Franke2022-10-181-6/+0
|/
* Change return type of `get_configuration_warnings` to `PackedStringArray`Marc Gilleron2022-09-191-2/+2
|
* Rename `uniform` to `parameter` across the engineYuri Rubinsky2022-09-011-14/+14
|
* Rename shader parameter uniform setter/getter methods for consistencyHugo Locurcio2022-08-041-16/+16
| | | | | | `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.
* Tweak Decal distance fade defaults and add property hintsHugo Locurcio2022-07-271-4/+5
| | | | | | | | | The new default values are more usable in real world scenarios when smooth fading of distant decals is desired for performance reasons. The Decal distance fade property hints were adjusted based on the GeometryInstance3D visibility range fade property hints. `or_greater` was also added to allow specifying larger values if needed.
* Use the Static global illumination mode in GeometryInstance3D by defaultHugo Locurcio2022-06-231-2/+0
| | | | | This makes VoxelGI and SDFGI work out of the box with primitive meshes, loaded OBJ meshes and CSG nodes.
* Add suffixes to all nodes and resourcesFireForge2022-06-111-4/+4
|
* Fix errors when materials attached to 3d object are not freedYuri Rubinsky2022-05-261-0/+9
|
* Use suffixes for units in nodes and resourcesAaron Franke2022-05-191-1/+1
|
* String: Remove TTR and DTR defines in non-tools buildRémi Verschelde2022-03-281-3/+3
| | | | | This ensures we don't use TTR in runtime code, as it's specifically meant to source translations for the editor.
* Discern between virtual and abstract class bindingsreduz2022-03-101-0/+9
| | | | | | | | | | | | | | * Previous "virtual" classes (which can't be instantiated) are not corretly named "abstract". * Added a new "virtual" category for classes, they can't be instantiated from the editor, but can be inherited from script and extensions. * Converted a large amount of classes from "abstract" to "virtual" where it makes sense. Most classes that make sense have been converted. Missing: * Physics servers * VideoStream * Script* classes. which will go in a separate PR due to the complexity involved.
* Use `switch` consistently in `_notification` (`scene` folder)Rémi Verschelde2022-02-151-12/+3
|
* Merge pull request #55360 from Calinou/rename-bake-mode-propertiesRémi Verschelde2022-01-201-4/+4
|\
| * Rename and reorder bake mode properties for consistencyHugo Locurcio2021-12-141-4/+4
| | | | | | | | | | | | | | | | The order now goes from least to most computationally expensive: - Disabled - Static - Dynamic
* | Added material_overlay property to MeshInstance3DFernando Cosentino2022-01-051-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Applying overlay materials into multi-surface meshes currently requires adding a next pass material to all the surfaces, which might be cumbersome when the material is to be applied to a range of different geometries. This also makes it not trivial to use AnimationPlayer to control the material in case of visual effects. The material_override property is not an option as it works replacing the active material for the surfaces, not adding a new pass. This commit adds the material_overlay property to GeometryInstance3D (and therefore MeshInstance3D), having the same reach as material_override (that is, all surfaces) but adding a new material pass on top of the active materials, instead of replacing them.
* | Merge pull request #55370 from ↵JFonS2022-01-041-0/+11
|\ \ | | | | | | | | | | | | Calinou/geometryinstance3d-lod-fade-node-configuration-warning Emit node configuration warnings for GeometryInstance3D distance fade
| * | Emit node configuration warnings for GeometryInstance3D distance fadeHugo Locurcio2021-11-261-0/+11
| |/ | | | | | | | | The visibility range begin/end margin properties must be set above 0.0 for the fade transition to be visible.
* / Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
|/ | | | Happy new year to the wonderful Godot community!
* Implement distance fade and transparencyJFonS2021-10-251-5/+34
| | | | | | | | | | | | | | | | | | | | | The built-in ALPHA in spatial shaders comes pre-set with a per-instance transparency value. Multiply by it if you want to keep it. The transparency value of any given GeometryInstance3D is affected by: - Its new "transparency" property. - Its own visiblity range when the new "visibility_range_fade_mode" property is set to "Self". - Its parent visibility range when the parent's fade mode is set to "Dependencies". The "Self" mode will fade-out the instance when reaching the visibility range limits, while the "Dependencies" mode will fade-in its dependencies. Per-instance transparency is only implemented in the forward clustered renderer, support for mobile should be added in the future. Co-authored-by: reduz <reduzio@gmail.com>
* Merge pull request #51607 from aaronfranke/includesRémi Verschelde2021-08-131-2/+0
|\ | | | | Fix some unnecessary includes
| * Fix some unnecessary includesAaron Franke2021-08-131-2/+0
| |
* | Use the Unicode multiplication symbol where relevantHugo Locurcio2021-08-121-1/+1
|/
* Uniformize layer names, script methods and documentationPouleyKetchoupp2021-08-121-10/+14
| | | | | | | - Back to 1-based layer names to make it clearer in editor UI - Layer bit accessors are renamed to layer value and 1-based too - Uniform errors and documentation in render and physics - Fix a few remaining collision_layer used in place of collision_mask
* Add node configuration warning for GeometryInstance3D distanceHugo Locurcio2021-07-281-0/+12
|