Godot Engine – Multi-platform 2D and 3D game engine
Go to file
Forest Katsch 8825aa8b5b Fixes #43667.
The root cause of the issue is that OpenGL ES 2 does not support the `textureCubeLod` function.
There are (optional) extensions to support this, but they don't appear to be exposed with the ES2 renderer (even though the hardware needed to support LOD features are certainly available.)
The existing shim in `drivers/gles2/shaders/cubemap_filter.glsl` just creates a macro:

```
 #define textureCubeLod(img, coord, lod) textureCube(img, coord)
```

But the third parameter of `textureCube` is actually a mip bias, not an absolute mip level.
(And it doesn't seem to work regardless.)
In this specific case, the `cubemap_filter` should only sample from the first level of the "source" panorama cubemap.
In lieu of a method to force a lod level of zero, I've chosen to comment out the switchover from a 2D equirectangular panorama to the cubemap version of the same image, therefore always sampling roughness values from the 2D equirectangular panorama.
This may cause additional artifacts or issues across the seam, but at least it prevents the glaringly obvious black areas.

---

This same issue (no fragment texture LOD support) has rather large repercussions elsewhere too; it means materials with larger cubemap density (i.e. planar or distant objects) will be far rougher than expected.
Since GLES 3 appears to properly support fragment `texture*Lod` functions, switching to the GLES 3 backend would solve this problem.

---

Root cause discovered with help from @KaadmY.
2020-12-20 10:32:30 -06:00
.github [HTML5] Enforce JavaScript style with eslint. 2020-11-23 13:26:19 +01:00
core Fix crash parsing a serialized Reference 2020-12-17 12:24:55 +01:00
doc Add a minimap to the GraphEdit 2020-12-18 01:31:17 +03:00
drivers Fixes #43667. 2020-12-20 10:32:30 -06:00
editor Add a minimap to the GraphEdit 2020-12-18 01:31:17 +03:00
main Revert "Don't open editor window when using --export, --doctool, or --gdnative-generate-json-api" 2020-12-16 15:02:10 +01:00
misc [HTML5] Add logo and favicon to editor html. 2020-12-09 18:09:30 +01:00
modules Merge pull request #44305 from RevoluPowered/fbx-update-plugin 2020-12-17 21:19:59 +01:00
platform iOS: fix keyboard display 2020-12-16 05:05:38 +03:00
scene Add a minimap to the GraphEdit 2020-12-18 01:31:17 +03:00
servers Remove Generic6DOFJoint precision property 2020-12-15 10:15:42 +00:00
thirdparty Fix some easing equations' undefined behaviours. 2020-12-10 13:08:05 +01:00
.clang-format clang-format: Add JavaImportGroups for Java code 2020-05-07 13:36:27 +02:00
.editorconfig 3.2 New csproj style with backport of Godot.NET.Sdk 2020-08-20 21:48:59 +02:00
.gitattributes Git: Explicitly list binary files as such to avoid EOL change 2019-05-25 10:43:48 +02:00
.gitignore Add a separate nativeSrcsConfigs module to handle Android Studio constraints for native code editor support. 2020-11-11 15:30:56 +01:00
.mailmap Update AUTHORS and DONORS list 2020-12-09 13:04:27 +01:00
AUTHORS.md Update AUTHORS and DONORS list 2020-10-28 15:09:17 +01:00
CHANGELOG.md Fix typos with codespell 2020-09-18 14:09:51 +02:00
compat.py SCons: Fix python2 compatibility after #37198 and #37248 2020-06-11 20:15:48 +02:00
CONTRIBUTING.md Document the requirement to update the class reference when contributing 2020-06-10 15:30:52 +02:00
COPYRIGHT.txt Relicense Godot logo from CC-BY-3.0 to CC-BY-4.0 2020-12-09 11:22:04 +01:00
DONORS.md Update AUTHORS and DONORS list 2020-12-09 13:04:27 +01:00
gles_builders.py SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
icon.png Optimize images losslessly using oxipng -o6 --strip all --zopfli 2018-06-28 19:17:41 +02:00
icon.svg Use new Godot icon consistently everywhere 2017-05-17 19:53:59 +02:00
LICENSE.txt Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
LOGO_LICENSE.md Relicense Godot logo from CC-BY-3.0 to CC-BY-4.0 2020-12-09 11:22:04 +01:00
logo.png Optimize images losslessly using oxipng -o6 --strip all --zopfli 2018-06-28 19:17:41 +02:00
logo.svg Style: Add missing newlines to SVGs 2020-07-24 10:39:18 +02:00
methods.py Don't handle BaseException in build scripts 2020-12-12 10:10:23 +00:00
platform_methods.py SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
README.md Improve the project README 2020-08-14 00:32:04 +02:00
SConstruct Don't handle BaseException in build scripts 2020-12-12 10:10:23 +00:00
version.py Bump version to 3.2.4-beta 2020-09-18 08:28:18 +02:00

Godot Engine

Godot Engine logo

2D and 3D cross-platform game engine

Godot Engine is a feature-packed, cross-platform game engine to create 2D and 3D games from a unified interface. It provides a comprehensive set of common tools, so that users can focus on making games without having to reinvent the wheel. Games can be exported in one click to a number of platforms, including the major desktop platforms (Linux, macOS, Windows), mobile platforms (Android, iOS), as well as Web-based platforms (HTML5) and consoles.

Free, open source and community-driven

Godot is completely free and open source under the very permissive MIT license. No strings attached, no royalties, nothing. The users' games are theirs, down to the last line of engine code. Godot's development is fully independent and community-driven, empowering users to help shape their engine to match their expectations. It is supported by the Software Freedom Conservancy not-for-profit.

Before being open sourced in February 2014, Godot had been developed by Juan Linietsky and Ariel Manzur (both still maintaining the project) for several years as an in-house engine, used to publish several work-for-hire titles.

Screenshot of a 3D scene in Godot Engine

Getting the engine

Binary downloads

Official binaries for the Godot editor and the export templates can be found on the homepage.

Compiling from source

See the official docs for compilation instructions for every supported platform.

Community and contributing

Godot is not only an engine but an ever-growing community of users and engine developers. The main community channels are listed on the homepage.

To get in touch with the engine developers, the best way is to join the #godotengine-devel IRC channel on Freenode.

To get started contributing to the project, see the contributing guide.

Documentation and demos

The official documentation is hosted on ReadTheDocs. It is maintained by the Godot community in its own GitHub repository.

The class reference is also accessible from the Godot editor.

The official demos are maintained in their own GitHub repository as well.

There are also a number of other learning resources provided by the community, such as text and video tutorials, demos, etc. Consult the community channels for more information.

Actions Build Status Code Triagers Badge Translate on Weblate Total alerts on LGTM TODOs