summaryrefslogtreecommitdiffstats
path: root/drivers
Commit message (Collapse)AuthorAgeFilesLines
* Split GI effects and fix stereoscopic rendering of GI effectsBastiaan Olij2022-06-229-141/+257
|
* Clean up Hash Functionsreduz2022-06-201-7/+7
| | | | | | | Clean up and do fixes to hash functions and newly introduced murmur3 hashes in #61934 * Clean up usage of murmur3 * Fixed usages of binary murmur3 on floats (this is invalid) * Changed DJB2 to use xor (which seems to be better)
* Introduce eye_offset for correcting stereoscopic reflectionsBastiaan Olij2022-06-172-1/+2
| | | | Use view instead of vertex for reflections.
* Implement MultiMesh in 3D and flesh out MultiMesh functionsclayjohn2022-06-1410-188/+290
|
* Initial TAA implementationjfons2022-06-072-4/+4
| | | | | | Initial TAA support based on the implementation in Spartan Engine. Motion vectors are correctly generated for camera and mesh movement, but there is no support for other things like particles or skeleton deformations.
* Ensure has_os_features is safely called as it can't be called from within ↵Bastiaan Olij2022-06-011-0/+4
| | | | the construct of RenderingServerDefault on which it relies
* Implement NinePatchRects in GLES3 rendererclayjohn2022-05-251-12/+12
|
* Merge pull request #61425 from clayjohn/GLES3-2DRémi Verschelde2022-05-265-139/+182
|\
| * Implement 2D Meshes and MultiMeshes in GLES3 backendclayjohn2022-05-255-139/+182
| |
* | Merge pull request #60641 from clayjohn/Sky-ignRémi Verschelde2022-05-241-0/+1
|\ \ | |/ |/| Use IGN instead of white noise for sky dithering
| * Use IGN instead of white noise for sky ditheringclayjohn2022-05-241-0/+1
| |
* | Add clipping, backbuffer, and CanvasGroups to 2D GLES3 rendererclayjohn2022-05-2422-1144/+708
|/ | | | As well as significant consequent cleanup in the RenderTarget, Texture, and Canvas renderer code
* Merge pull request #60803 from Chaosus/shader_hint_renameRémi Verschelde2022-05-241-8/+5
|\ | | | | Rename `hint_albedo`, `hint_white/black` in shaders
| * Rename `hint_albedo`, `hint_white/black` in shadersYuri Roubinsky2022-05-091-8/+5
| |
* | Add a new HashSet templatereduz2022-05-206-17/+17
| | | | | | | | | | * Intended to replace RBSet in most cases. * Optimized for iteration speed
* | Fix sky updating when DirectionalLight mode changed and shader compatibility ↵clayjohn2022-05-193-6/+6
| | | | | | | | for certain drivers
* | Use range iterators for RBSet in most casesAaron Record2022-05-193-39/+39
| |
* | Fix tonemapper shader to correctly apply alpha channelYuri Rubinsky2022-05-181-6/+6
| |
* | Add basic lighting to GLES3 renderer.clayjohn2022-05-1615-526/+1537
| | | | | | | | This includes all three light types and IBL, but does not include shadows or any form of GI
* | Replace most uses of Map by HashMapreduz2022-05-1613-119/+119
| | | | | | | | | | | | | | | | | | | | | | | | * Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
* | Fix computation of screen_uvSomnath Sarkar2022-05-161-1/+1
| |
* | Merge pull request #60894 from derammo/derammo_opengl3_windowsRémi Verschelde2022-05-133-2/+9
|\ \
| * | opengl3 driver now works on windows including multi windowderammo2022-05-113-2/+9
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fixed and simplified gl_manager_windows swap buffers now called for all windows fixed missing pixel format setting in additional windows this makes them work in OpenGL contexts changed verbose error printing to write once this error message happens very frequently while opengl3 is not finished removed dead code no longer needed after changes fixed comments that were misinformation window messages during window creation now handled these were previously discarded messages now tunnel the required context changed failure to create opengl3 window on windows to be more fatal marked a problem with pen code conditional compilation of vulkan and opengl3 on windows fixed windows debug builds now show messages on debug console also rendering driver selection box now shows only compiled drivers marked some problematic code thanks to akien-mga for patiently rewriting my style mistakes
* | Merge pull request #60643 from clayjohn/GLES3-3DRémi Verschelde2022-05-1224-2067/+3408
|\ \
| * | Basic 3D renderingclayjohn2022-05-1222-253/+1728
| | |
| * | SceneShader compilingclayjohn2022-05-118-1740/+1163
| | |
| * | SkyShaders workingclayjohn2022-05-1110-159/+602
| | |
* | | Add a new HashMap implementationreduz2022-05-121-3/+2
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a new, cleaned up, HashMap implementation. * Uses Robin Hood Hashing (https://en.wikipedia.org/wiki/Hash_table#Robin_Hood_hashing). * Keeps elements in a double linked list for simpler, ordered, iteration. * Allows keeping iterators for later use in removal (Unlike Map<>, it does not do much for performance vs keeping the key, but helps replace old code). * Uses a more modern C++ iterator API, deprecates the old one. * Supports custom allocator (in case there is a wish to use a paged one). This class aims to unify all the associative template usage and replace it by this one: * Map<> (whereas key order does not matter, which is 99% of cases) * HashMap<> * OrderedHashMap<> * OAHashMap<>
* | [GL] Fix HTML5 builds.Fabio Alessandrelli2022-05-112-2/+2
| | | | | | | | | | Safer guards for debug functions. GL_FRAMEBUFFER_INCOMPLETE_* functions seem to be OpenGL 4.
* | [macOS / iOS] Fix text-to-speech build with older macOS / iOS SDK.bruvzg2022-05-103-5/+5
| | | | | | | | | | | | Add __has_include check for AVFAudio include. Add some explicit casts to avoid conflicts. Change all `include`s to `import`s for consistency.
* | Merge pull request #60596 from clayjohn/GLES3-LightStorageRémi Verschelde2022-05-102-47/+386
|\ \ | |/ |/| Add LightStorage functions to GLES3 renderer
| * Add LightStorage functions to GLES3 rendererclayjohn2022-04-282-47/+386
| |
* | Merge pull request #60723 from reduz/refactor-module-initializationRémi Verschelde2022-05-041-2/+0
|\ \
| * | Refactor module initializationreduz2022-05-041-2/+0
| | | | | | | | | | | | | | | | | | | | | * Changed to use the same stages as extensions. * Makes the initialization more coherent, helping solve problems due to lack of stages. * Makes it easier to port between module and extension. * removed the DRIVER initialization level (no longer needed).
* | | Add OS::is_process_running function.mdavisprog2022-05-032-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | Adds the is_process_running function to the native OS class and exposes it to script. This is implemented on Windows and Unix platforms. A stub is provided for other platforms that do not support this function. Documentation is updated to reflect new API function.
* | | Rename Basis get_axis to get_column, remove redundant methodsAaron Franke2022-05-031-1/+1
| | |
* | | Merge pull request #51102 from Calinou/renderingserver-add-api-version-getterRémi Verschelde2022-05-036-0/+17
|\ \ \ | | | | | | | | Add `get_video_adapter_api_version()` to RenderingServer
| * | | Add `get_video_adapter_api_version()` to RenderingServerHugo Locurcio2022-05-036-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | This method can be used to get the graphics API version currently in use (such as Vulkan). It can be used by projects for troubleshooting or statistical purposes.
* | | | Merge pull request #60627 from aaronfranke/rename-elementsRémi Verschelde2022-05-034-132/+135
|\ \ \ \ | | | | | | | | | | Rename Transform2D and Basis `elements` to `columns` and `rows` respectively
| * | | | Rename Basis "elements" to "rows"Aaron Franke2022-04-293-89/+89
| | | | |
| * | | | Rename Transform2D "elements" to "columns"Aaron Franke2022-04-294-43/+46
| | | | |
* | | | | Merge pull request #60714 from Calinou/typedef-remove-refRémi Verschelde2022-05-035-9/+9
|\ \ \ \ \ | |_|_|/ / |/| | | | Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`
| * | | | Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`Hugo Locurcio2022-05-035-9/+9
| | |/ / | |/| | | | | | | | | | | | | | | | | | These typedefs don't save much typing compared to the full `Ref<Resource>` and `Ref<RefCounted>`, yet they sometimes introduce confusion among new contributors.
* | | | Merge pull request #60601 from touilleMan/gdextension_get_library_pathRémi Verschelde2022-05-032-2/+7
|\ \ \ \ | |/ / / |/| | | Add GDNativeInterface::get_library_path to GDExtension
| * | | Add GDNativeInterface::get_library_path to GDExtensionEmmanuel Leblond2022-04-292-2/+7
| |/ /
* | | Style: Partially apply clang-tidy's `cppcoreguidelines-pro-type-member-init`Rémi Verschelde2022-05-026-61/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Didn't commit all the changes where it wants to initialize a struct with `{}`. Should be reviewed in a separate PR. Option `IgnoreArrays` enabled for now to be conservative, can be disabled to see if it proposes more useful changes. Also fixed manually a handful of other missing initializations / moved some from constructors.
* | | Add `hint_color` support for `vec3` in shadersYuri Roubinsky2022-05-011-17/+51
|/ /
* / Add MeshStorage to GLES3clayjohn2022-04-284-51/+1507
|/
* Fix typo after #60503Rémi Verschelde2022-04-281-1/+1
|
* Merge pull request #60503 from clayjohn/OPENGL-3DRémi Verschelde2022-04-2819-2198/+4759
|\