gregcman / sucle

Common Lisp Voxel Game Engine
MIT License
287 stars 24 forks source link

GLSL issue #36

Closed gravitational-dark-light closed 4 years ago

gravitational-dark-light commented 4 years ago

When I try to start sucle, I always get this error for some reason:

sucle-error sucle-error-2 sucle-error-3

Any idea what the issue could be?

gregcman commented 4 years ago

Hello! Thanks for reporting this error.

The error message indicates that your OpenGL version is 2.1 and GLSL version is 120, so when trying to compile shaders, the wrong text is emitted.

This is not good, all GLSL versions are supported via least-common denominator features [this has been tested before, but is broken now apparently]. It has to do with improper string replacement of "out" to "varying".

This fix should take a couple of minutes, let me see...

gregcman commented 4 years ago

So it turns out that two function parameters were swapped, like a typo. So (f b a) -> (f a b) This should do the trick: https://github.com/gmasching/sucle/commit/33610669de8e427579e6e6f3111240220aa90913

Thanks!

gravitational-dark-light commented 4 years ago

So it turns out that two function parameters were swapped, like a typo. So (f b a) -> (f a b) This should do the trick: 3361066

Thanks!

Well, it's working now, thank you

gregcman commented 4 years ago

Also be warned that there is currently no world-generation or test world.

You have to place all the blocks yourself or figure out how the other code works.

I really need to add a menu, or a tutorial or a help section.

gravitational-dark-light commented 4 years ago

Yeah, I read about that in other issues before, but that's ok, I wanted to play with things anyway

gregcman commented 4 years ago

Kudos for trying things out, but right now its so bare bones at the moment and undocumented that you will definitely have a hard time. If you need any help, just ask.

gravitational-dark-light commented 4 years ago

Will do, thanks...