-
-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GLES2 support ? #96
Comments
To my knowledge, the terrain itself doesn't use features that GLES2 doesn't support. However I never took the time to test that in Godot... #87 already hinted this but I've been busy on other projects. In doubt, the README could be considered incorrect, but it should be investigated why, because it could be a bug with Godot or something to adjust in the plugin, if not too much of a hassle. One of the few things I know about GLES2 implementation in Godot is that it doesn't support HDR. The plugin doesn't use HDR... almost. If "HDR" means "16-bit viewport", then some of the tools provided in the editor part of the plugin will not work, or badly work: GPU-accelerated terrain generation and normals baking, mostly. So editing a terrain might require GLES3, but the terrain alone doesn't. |
This compilation error is present in the log when I'm trying to use it under GLES2: |
@Antokolos ugh, that sucks... well at least it's doable with a |
@karroffel :p If the terrain looks flat, it means the heightmap couldn't get to the GPU somehow... I reaaaaally hope GLES2 supports 16-bit textures, because if it doesn't, the plugin just straight won't work xD (or will have lots of bumps and be a pain to support in 8-bit). Edit: ok that error you got mentionning Karroffel is partial texture update. The plugin can work without that, it will just be slower to edit large terrains. Normally GLES2 supports this, but in the meantime you could add a renderer check here so it uses the fallback:
|
@Zylann I think 16 bit textures are enabled with an extension in GLES2. So likely not gonna have full support for it. |
Oh well... if half-float textures don't work in GLES2 that plugin might just not support it officially then. That's really too bad because it would basically cut away mobiles without Vulkan and web. |
@Zylann just looked into it. GL 2.1 supports it natively and GL ES 2.0 requires an extension that Godot looks for and uses automatically. |
in gles2 on mobiles, reading from textures in vertex shader is not supported at all. |
@avril-gh if vertex displacement from texture is not allowed, then this plugin won't ever work on such mobiles. This terrain works decently because it does not generate meshes, and that would require a complete rewrite of the plugin just so it supports those devices... |
as said many times this plugin does not support GLES2 at least for now. |
the info reads that it support gles2
While it do work on gles3 renderer, then while switched to gles2, the terrain surface is not visible and there are spam of shader compile errors.
Does it support gles2 or .md info is wrong ?
The text was updated successfully, but these errors were encountered: