You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Added option to enable high precision float in GLES2
An additional project setting under rendering/gles2/compatibility with the name enable_high_float.Android 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.
This commit is contained in:
@@ -2444,6 +2444,7 @@ VisualServer::VisualServer() {
|
||||
GLOBAL_DEF("rendering/batching/debug/flash_batching", false);
|
||||
GLOBAL_DEF("rendering/batching/debug/diagnose_frame", false);
|
||||
GLOBAL_DEF("rendering/gles2/compatibility/disable_half_float", false);
|
||||
GLOBAL_DEF("rendering/gles2/compatibility/enable_high_float.Android", false);
|
||||
GLOBAL_DEF("rendering/batching/precision/uv_contract", false);
|
||||
GLOBAL_DEF("rendering/batching/precision/uv_contract_amount", 100);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user