zeokku / glsl.app

🌅 Modern WebGL GLSL Shaders Editor
https://glsl.app
132 stars 6 forks source link

[BUG] The share link functionallity does not restore the shader at all #21

Closed Mathias-Boulay closed 9 months ago

Mathias-Boulay commented 9 months ago

Hi there, first of all thank you for the playground you provided to the world.

I intend to make a short introduction to fragment shaders, and I would like to provide snippets the students could play around with. Unfortunately, the links generated by the share button do not load the shader inside any tab loading it.

Example: link to a basic shader The glsl file does not get downloaded. Network screenshot from a clean load of the webpage with the link from the example: image

image

Side Note: When watching the console, it seems that the index.html file does not get delivered. Seems unrelated to our issue though.

Lutymane commented 9 months ago

Thank you for reporting the issue!

I have pushed a fix (it was caused because I forgot to regenerate GraphQL code for the latest update), make sure to force reload the page (it should say build 08/02/24 in console)

Mathias-Boulay commented 9 months ago

I'll try it out right away !

Mathias-Boulay commented 9 months ago

The texture doesn't load but it's normal that it isn't stored on the server. Thanks !