ptitSeb / gl4es

GL4ES is a OpenGL 2.1/1.5 to GL ES 2.0/1.1 translation library, with support for Pandora, ODroid, OrangePI, CHIP, Raspberry PI, Android, Emscripten and AmigaOS4.
http://ptitseb.github.io/gl4es/
MIT License
682 stars 154 forks source link

Shader conversion improvement #163

Open artdeell opened 4 years ago

artdeell commented 4 years ago

Can you improve the shader conversion? Every single shader for Minecraft gives lotta errors when compilation.

ptitSeb commented 4 years ago

what kind of error do you have ? Also, what version of Minecraft, because it used to works fine without errors, and on what hardware are you running?

artdeell commented 4 years ago

what kind of error do you have ? Also, what version of Minecraft, because it used to works fine without errors, and on what hardware are you running?

Hardware: MSM8996 Pro Ardeno 530 Minecraft: OptiFine 1.11.2 with Shaders

When joining the world, gl4es fires a lot of Invalid enum errors. Before that errors compiler throws a lot of errors in shaders.

ptitSeb commented 4 years ago

Are you sure OptiFine shaders are for OpenGL 2.x and not 3.x?

artdeell commented 4 years ago

Yes.

artdeell commented 4 years ago

I tried the Lite version of Chocapic13 v7 shaders

ptitSeb commented 4 years ago

I took a look. While this is indeed OpenGL 2.x, I see it use the #include .... statement. gl4es doesn't support that for now, so I guess this could be the cause of the issue.

artdeell commented 4 years ago

Take a look to logcat Log_2020-04-23_13-25-30.txt

ptitSeb commented 4 years ago

is the log coming from Chocapic13v7 Lite shaders? Because I see the errors and the kind it can be, but I don't see were it could from for the shaders sources.

artdeell commented 4 years ago

is the log coming from Chocapic13v7 Lite shaders? Because I see the errors and the kind it can be, but I don't see were it could from for the shaders sources.

No, it's from SFLP shaders (which is opengl 2.0-compartible shaders)

ptitSeb commented 4 years ago

Well, I'll see what I can do, but don't hold your breath on this.