Sign in to follow this  
PLAYERKILLERS

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

Recommended Posts

A user has reported this error

 

Error creating WebGL renderer :0:2(12): warning: extension GL_ARB_gpu_shader5' unsupported in fragment shader
0:21(29): error: sampler arrays indexed with non-constant expressions are forbidden in GLSL 1.30 and later

unknown.png

Share this post


Link to post
Share on other sites

do you know on which platform this is ? also which version of melonJS are you currently using ?

I'm asking, as of version 6.x (and through 7.x) WebGL detection and implementation have been improved to especially avoid using it when not fully supported.

Share this post


Link to post
Share on other sites

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.

 

Share this post


Link to post
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...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.