OMEGANAUT

Post screenshots, binaries and projectfiles of the projects you have made with ZGE that you want to share!

Moderator: Moderators

User avatar
Ats
Posts: 445
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: OMEGANAUT

Post by Ats » Tue May 04, 2021 10:48 am

try switching to ES2/GL3 then saving the file as ShaderDemoES2 and then reloading it. Maybe it's using cached shader objects or something.
I did that and it's still the same. Switching to ES2/GL3 seems to be not simple and with random results... I'm not sure if I want to do that.

(but I'll do it anyway :lol: )

User avatar
Kjell
Posts: 1776
Joined: Sat Feb 23, 2008 11:15 pm

Re: OMEGANAUT

Post by Kjell » Tue May 04, 2021 11:30 am

Hi Ats,
Ats wrote:
Tue May 04, 2021 10:48 am
I did that and it's still the same. Switching to ES2/GL3 seems to be not simple and with random results... I'm not sure if I want to do that.
Sorry, my mistake. When you switch to ES2/GL3 on PC you can still use "legacy" features ( such as gl_Vertex ) due to backwards compatibility* There's no easy way to force ZGE to use OpenGL 3.3 ( the first version that isn't backwards-compatible ) without changing a bunch of stuff in the source code.

* ES 2.0 isn't backwards compatible with ES 1.1 though. But ES 1.1 doesn't support shaders ( and ES 2.0 doesn't support legacy shaders ) so you can't test it on Android either.

K

User avatar
Kjell
Posts: 1776
Joined: Sat Feb 23, 2008 11:15 pm

Re: OMEGANAUT

Post by Kjell » Tue May 04, 2021 12:01 pm

:idea:

Just to clear this up:

Code: Select all

┌─────────────┬──────────────┬───────────┬───────────────────┬────────────────┐
│             │PC(Compatible)│PC(ES2/GL3)│Android(Compatible)│Android(ES2/GL3)│
├─────────────┼──────────────┼───────────┼───────────────────┼────────────────┤
│Legacy Shader│OK            │OK         │ERROR              │ERROR           │
├─────────────┼──────────────┼───────────┼───────────────────┼────────────────┤
│Modern Shader│ERROR*        │OK         │ERROR              │OK              │
└─────────────┴──────────────┴───────────┴───────────────────┴────────────────┘
*Might not always produce compilation errors, but won't produce correct results.

K

Post Reply