Age | Commit message (Collapse) | Author |
|
Properly remap roughness when reading from radiance map
|
|
This ensures that we consistently use perceptual roughness which matches the behaviour of most other PBR renderers like Blender, Ue4 and Godot 3
|
|
Get WebXR fully working in Godot 4!
|
|
|
|
Add Skeletons and Blend Shapes to the OpenGL renderer
|
|
Add necessary build flags and switch from using a
GLES2 context to a GLES3 one.
This also enables building for OpenXR
Co-authored-by: m4gr3d <fhuyakou@gmail.com>
Co-authored-by: dsnopek <dsnopek@gmail.com>
|
|
This uses a similar multipass approach to blend shapes
as Godot 3.x, the major difference here is that we
need to convert the normals and tangents to octahedral
for rendering.
Skeletons work the same as the Vulkan renderer except the bones
are stored in a texture as they were in 3.x.
|
|
The batch was being discarded if no instance buffer was present, but an instance buffer is only needed for MultiMesh and particles.
|
|
|
|
fixed incorrect mesh normals in shaders
|
|
Also clean up skeleton code in preparation for adding them to GLES3
Properly update Mesh2D AABBs when skeleton is updated
|
|
|
|
|
|
Regenerate GL loader code with GLAD 2
|
|
Add GPUParticles to the OpenGL3 renderer.
|
|
Implement is_animated and casts_shadows
|
|
This includes collision (2D SDF, Box, Sphere, Heightmap),
attraction (Box, Sphere), and all sorting modes.
This does not include 3D SDF collisions, trails, or
manual emission.
|
|
GLAD 1 creates unusable loaders for EGL, while the newly released GLAD 2
does not, so for consistency I thought that it would be a good idea to
uniform things beforehand. While it had some API changes some renames
were all that was needed and everything works like before, at least on
the Wayland branch.
I've kept the structure identical, although this new generator has quite
a few hefty features, such as a single header mode.
I've also added GLAD to `thirdparty/README.md`, but I haven't specified
that in the commit title because it's a very small "fix".
|
|
|
|
Use opaque rendering pipeline for alpha hash materials
|
|
This allows the renderer to correctly decide when to update shadow maps
This PR also adds TIME to a few missing places
|
|
|
|
Expose texture_get_rd_texture for scripts
|
|
Fix draw_primitive ignoring texture argument
|
|
Request redraw in OpenGL3 and mobile renderers when TIME used in shader
|
|
|
|
|
|
Interleaving draw_rect calls with and without a texture forces every rect to
have its own draw call. In this case it meant that there is a draw call for every single
tile in the atlas. This change makes it so the renderer can batch draw calls
which reduced the draw call count by a factor of 512
|
|
render_target_set_override()
|
|
|
|
Remove depth correction in GLES3 renderer
|
|
Style: Misc docs and comment style and language fixes
|
|
- Removed empty paragraphs in XML.
- Consistently use bold style for "Example:", on a new line.
- Fix usage of `[code]` when hyperlinks could be used (`[member]`, `[constant]`).
- Fix invalid usage of backticks for inline code in BBCode.
- Fix some American/British English spelling inconsistencies.
- Other minor fixes spotted along the way, including typo fixes with codespell.
- Don't specify `@GlobalScope` for `enum` and `constant`.
|
|
This avoids a WEBGL error causes PanoramaSkys to fail to render
|
|
Add 2D shadows and canvas SDF to OpenGL3 renderer
|
|
This allows using texture_2d_get on all platforms which is needed for the get_image function
This commit also fixes some OpenGL warnings on the Web platform that came from attempting to map a buffer with zero length
|
|
Unify usage of GLOBAL/EDITOR_GET
|
|
Add OpenGL timer queries to OpenGL3 backend
|
|
|
|
This is an initial implementation based on the current RD implementation
Performance will improve later
|
|
Fix ambient_light_disabled render mode flag
|
|
Prevent windows from having a size greater than device limit
|
|
Improve behaviour of clip_children by clipping to parent alpha value but still retaining parent color
|
|
This argument is now non optional, but this never hits the same bad access.
I voted to simplify the code here since the argument is never used optionally in our codebase.
|
|
[opengl] Add multiview to the opengl3 driver
|
|
This code should only have been included in the RD renderer where the
depth range is 0 - 1 instead of -1 - 1
|
|
|
|
|
|
|
|
|