summaryrefslogtreecommitdiffstats
path: root/scene/resources
Commit message (Collapse)AuthorAgeFilesLines
* doc: Sync classref with current sourceRémi Verschelde2020-12-041-59/+6
| | | | | | | | And fixups: - Add missing bindings in RenderingServer - Remove duplicate ArrayMesh enum bindings (they're in Mesh already) - Remove redundant _unhandled_key_input binding in Control (it's in Node already)
* Refactored Mesh internals and formats.reduz2020-12-025-211/+559
| | | | | | | | | | | | | | | -Changed how mesh data is organized, hoping to make it more efficient on Vulkan and GLES. -Removed compression, it now always uses the most efficient format. -Added support for custom arrays (up to 8 custom formats) -Added support for 8 weights in skeleton data. -Added a simple optional versioning system for imported assets, to reimport if binary is newer -Fixes #43979 (I needed to test) WARNING: -NOT backwards compatible with previous 4.x-devel, will most likely never be, but it will force reimport scenes due to version change. -NOT backwards compatible with 3.x scenes, this will be eventually re-added. -Skeletons not working any longer, will fix in next PR.
* Fixed some errors when changing port name in visual shader expressionsYuri Roubinsky2020-12-022-20/+23
|
* Fix few bugs in visual shader expressionsYuri Roubinsky2020-12-011-2/+6
| | | | | Fixed few bugs in visual shader expressions
* Fixed several visual shader inputsYuri Roubinsky2020-11-291-15/+20
| | | | | Fixed several inputs in visual shaders
* Merge pull request #42761 from fire/color-grading-3dRémi Verschelde2020-11-282-8/+25
|\ | | | | Environment brightness, contrast, saturation restore with 3d LUT.
| * Environment brightness, contrast, saturation restore with color correction.clayjohn2020-11-282-8/+25
| | | | | | | | | | | | | | | | | | Allow gradients and 2d images. Use shader versions for LUT in tonemap Co-authored-by: alex-poe <3957610+CptPotato@users.noreply.github.com> Co-authored-by: QbieShay <cislaghi.ilaria@gmail.com> Co-authored-by: Clay John <claynjohn@gmail.com>
* | Fixed invalid visual shader outputs (TRANSMISSION, ALPHA_SCISSOR)Yuri Roubinsky2020-11-281-4/+4
| |
* | Merge pull request #41100 from bruvzg/ctl_text_server_interfaceRémi Verschelde2020-11-2824-2089/+2175
|\ \ | | | | | | [Complex Text Layouts] Implement TextServer interface.
| * | [Complex Text Layouts] Refactor Font class, default themes and controls to ↵bruvzg2020-11-2624-2089/+2175
| |/ | | | | | | | | | | | | | | use Text Server interface. Implement interface mirroring. Add TextLine and TextParagraph classes. Handle UTF-16 input on macOS and Windows.
* | Merge pull request #39056 from rileylyman/tscn_newlinesRémi Verschelde2020-11-271-0/+5
|\ \ | | | | | | Skip extra newline in .tscn when renaming dependency
| * | skip extra newline in .tscn when renaming dependencyrileylyman2020-05-251-0/+5
| | |
* | | Added extra warning to VisualShaderNodeTexture + fix warning appearingYuri Roubinsky2020-11-262-0/+16
| |/ |/|
* | Describe `ImageTexture`, `Image` creation and usageAndrii Doroshenko (Xrayez)2020-11-171-6/+9
| |
* | Merge pull request #38812 from aaronfranke/brace-no-empty-lineRémi Verschelde2020-11-176-14/+0
|\ \ | | | | | | Remove all empty lines from the start of blocks defined with braces
| * | Remove empty lines around braces with the formatting scriptAaron Franke2020-11-166-14/+0
| | |
* | | Merge pull request #43547 from TokageItLab/lowering-s3d-and-camera-min-unitRémi Verschelde2020-11-174-6/+6
|\ \ \ | |/ / |/| | Lowering the Minimum Unit at Shape3D and Cameras
| * | Lowering the Minimum Unit at Shape3D and CamerasTokage2020-11-174-6/+6
| | |
* | | Merge pull request #43316 from YeldhamDev/rate_scale_wav_fixRémi Verschelde2020-11-161-1/+2
|\ \ \ | | | | | | | | Fix WAV resources ignoring the AudioServer's 'global_rate_scale' value
| * | | Fix WAV resources ignoring the AudioServer's 'global_rate_scale' valueMichael Alexsander2020-11-041-1/+2
| | | |
* | | | Merge pull request #42008 from Calinou/theme-rename-node-typeRémi Verschelde2020-11-162-183/+183
|\ \ \ \ | |_|/ / |/| | | Rename the `type` parameter to `node_type` in Theme and Control
| * | | Rename the `type` parameter to `node_type` in Theme and ControlHugo Locurcio2020-10-272-183/+183
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes it clearer that it expects a node type as a string (such as "Label") instead of a type like "TYPE_ARRAY". This is backwards-compatible since only the name of the parameter is changed, not its order.
* | | | Improve error messages related to failing to open filesNick Swoboda2020-11-121-3/+3
| | | |
* | | | Variant: Rename Type::_RID to Type::RIDRémi Verschelde2020-11-093-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The underscore prefix was used to avoid the conflict between the `RID` class name and the matching enum value in `Variant::Type`. This can be fixed differently by prefixing uses of the `RID` class in `Variant` with the scope resolution operator, as done already for `AABB`.
* | | | Reorganized core/ directory, it was too fatty alreadyreduz2020-11-0739-48/+48
| | | | | | | | | | | | | | | | | | | | | | | | -Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code
* | | | Fix uninitialised variables in the BaseMaterial3D.bruvzg2020-11-061-0/+2
| |/ / |/| |
* | | Alpha Hash and Alpha2Coverage ImplementationMarios Staikopoulos2020-11-022-61/+243
| | |
* | | Update scene/resources/dynamic_font.cppJuan Linietsky2020-10-281-0/+2
| | | | | | | | | Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
* | | Implement CanvasGroup and CanvasItem clippingreduz2020-10-281-2/+13
|/ / | | | | | | | | | | | | | | -Allows merging several 2D objects into a single draw operation -Use current node to clip children nodes -Further fixes to Vulkan barriers -Changed font texture generation to white, fixes dark eges when blurred -Other small misc fixes to backbuffer code.
* | Visual Shader Parenthesis fixLuke Costello2020-10-271-2/+2
| | | | | | missing parenthesis were added to prevent conditional statement from interacting with operations
* | Merge pull request #43075 from Xrayez/color-ramp-to-gradientRémi Verschelde2020-10-262-19/+7
|\ \ | | | | | | Fixup `ColorRamp` to `Gradient` renames
| * | Fixup `ColorRamp` to `Gradient` renamesAndrii Doroshenko (Xrayez)2020-10-252-19/+7
| | |
* | | Refactored 2D shader and lighting systemreduz2020-10-248-138/+60
|/ / | | | | | | | | | | | | | | | | | | -Removed normal/specular properties from nodes -Create CanvasTexture, which can contain normal/specular channels -Refactored, optimized and simplified 2D shaders -Use atlas for light textures. -Use a shadow atlas for shadow textures. -Use both items aboves to make light rendering stateless (faster). -Reorganized uniform sets for more efficiency.
* | Merge pull request #42558 from Chaosus/vs_curveRémi Verschelde2020-10-194-22/+165
|\ \ | | | | | | Added visual shader node to easy gather data from a CurveTexture
| * | Added VisualShaderNodeCurve to easy gather data from a CurveTextureYuri Roubinsky2020-10-184-22/+165
| | |
* | | Revert "Replace SAO implementation with MSSAO"Juan Linietsky2020-10-182-25/+69
| | |
* | | Merge pull request #42077 from clayjohn/MSSAOJuan Linietsky2020-10-182-69/+25
|\ \ \ | | | | | | | | Replace SAO implementation with MSSAO
| * | | Replace SAO implementation with MSSAOclayjohn2020-10-182-69/+25
| | | |
* | | | Merge pull request #42201 from clayjohn/Vulkan-new-glowJuan Linietsky2020-10-182-21/+57
|\ \ \ \ | |/ / / |/| | | Optimize Glow with local memory
| * | | Optimize Glow with local memoryclayjohn2020-10-182-21/+57
| |/ /
* | | Merge pull request #41418 from clayjohn/Vulkan-aerialRémi Verschelde2020-10-182-1/+26
|\ \ \ | | | | | | | | Add aerial perspective to fixed fog
| * | | Add aerial perspective to fixed fogclayjohn2020-10-172-1/+26
| |/ /
* / / Refactor MethodBind to use variadic templatesreduz2020-10-183-4/+0
|/ / | | | | | | Removed make_binders and the old style generated binders.
* | Adds Metallic to spatial light input of visual shadersYuri Roubinsky2020-10-101-0/+1
| |
* | Implement GPU Particle Collisionsreduz2020-10-092-4/+128
| | | | | | | | | | | | | | | | | | | | -Sphere Attractor -Box Attractor -Vector Field -Sphere Collider -Box Collider -Baked SDF Collider -Heightmap Collider
* | glTF: Fix parsing image data with `mimeType` undefinedRémi Verschelde2020-10-051-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The glTF 2.0 spec only makes `mimeType` mandatory for `bufferView` image data, so the previous logic to handle URIs with base64-encoded images could fail if `mimeType` is undefined. The logic was documented and refactored to better handle the spec, notably: - `uri` and `bufferView` are now mutually exclusive, and only the latter fails if `mimeType` is undefined. - `uri` with a file path will now respect the `mimeType` if defined, and thus attempt loading the file with the specified format (even if its extension is not the one expected for this format). So we can support bad extensions (PNG data with `.jpg` extension) or custom ones (PNG data in `.img` file for example). - `uri` with base64 encoded data will infer MIME type from `data:image/png` or `data:image/jpeg` if it was not documented in `mimeType` initially. - `uri` with base64 encoded data, no `mimeType` and `application/octet-stream` or `application/gltf-buffer` will fall back to trying both PNG and JPEG loaders. Fully fixes #33796 (and fixes up #42501).
* | Fix typo in VisualShaderNodeSample3D::generate_codeYuri Roubinsky2020-10-041-1/+1
| |
* | Fix def parameter in Texture visual shader nodes for sky/particles modesYuri Roubinsky2020-10-031-22/+50
| |
* | Switch from recursion to iterative for backfilling colour regionsPaulb232020-10-031-0/+7
| |
* | Fix VisualShaderNode::set_output_port_connectedYuri Roubinsky2020-10-022-9/+4
| |