Skip to content

Added option to enable high precision float in GLES2

Rafał Mikrut requested to merge github/fork/NeoSpark314/gles2_highp into master

Created by: NeoSpark314

An additional project setting under rendering/shading with the name gles2_high_float_precision.mobile is introduced that enables #define USE_HIGHP_PRECISION in GLES2 shader on Android when it is supported by the shader compiler. This fixes #33633 and #32813 and also https://github.com/GodotVR/godot_oculus_mobile/issues/60 and https://github.com/GodotVR/godot_oculus_mobile/issues/68 on devices that support the highp (high precision) modifier.

@ClayJohn suggested on discord to introduce a project setting to solve this problem.

Two open questions from my side are

  1. Is it possible to show project settings only if the GLES2 backend is selected? If it is possible would this be desired for this option?
  2. At the moment it is only active for Android. I don't know if this is needed for iOS or if it would work there.

Merge request reports