Jump to content

error: sampler arrays indexed with non-constant expressions are forbidden in GLSL 1.30 and later


PLAYERKILLERS
 Share

Recommended Posts

which edit do you have for texture packer, is it the one for the free texture packer we also added in 8.0 ? 

as for the gravity, yes, as part of the 8.0 version (major version increase, so some breaking changes) we revamped a bit the physic implementation to be closer to those physic engine out-there (with the will to be able to use one of them through a plugin) and as a consequence we now have a world global gravity settings that can then be lowered or amplified per physic object (instead of previously where each object gravity were managed separately), see here for the detailed changes : https://github.com/melonjs/melonJS/wiki/Upgrade-Guide#71x-to-800

but if you switch to 8.0, you can just disable the gravity by setting me.game.world.gravity to 0 (it's a vector) and you should be back to the previous 7.x behavior.

last but not least as part of the WebGL testing I think we should then try to compile/link the built-in shaders and if failing then display a error message in the console and revert back to the canvas renderer, l'll look into it this week.

 

Link to comment
Share on other sites

  • 3 weeks later...

@PLAYERKILLERS any feedback from your tester ? 

in the mean time I just pushed some further changes to the WebGL renderer in order to fix the "sampler arrays indexed with non-constant expressions are forbidden in GLSL 1.30 and later" error which will allow to have the WebGL renderer enabled on more Linux platform as well.

https://melonjs-builds.s3.amazonaws.com/index.html?prefix=artifacts/master/2597/build/

Edited by obiot
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...