Giter Club home page Giter Club logo

Comments (12)

nickkuk avatar nickkuk commented on May 27, 2024 2

@Malacath-92, textures work in 0.8.3 now. Thanks!

from shader-toy.

Malacath92 avatar Malacath92 commented on May 27, 2024

Does this happen for any shader for you? If not, can you produce a minimum working example.
Which platform are you on?
Which version of VS Code are you running?

from shader-toy.

edap avatar edap commented on May 27, 2024

This is also happening to me. Any shader has the same output. Even a dummy:

vec2 vectorField(vec2 uv){
  vec2 res = uv;
  res.x += sin(res.y*30.5) * 0.01;
  return res;
}

void main(){
  vec2 st = gl_FragCoord.xy / iResolution.xy;
  st.y *= iResolution.y / iResolution.x;
  st = vectorField(st);

  vec3 col = vec3(1.0,0.,0.) * step(st.x, 0.5);
  gl_FragColor = vec4(col,1.0);
}

Produce the same result as @ianacaburian was posting.

I am on Mac, Code version 1.32

from shader-toy.

uniformfake avatar uniformfake commented on May 27, 2024

I have the same symptoms.

I am on Mac0S Mojave 10.14.4 / VSCode 1.33

from shader-toy.

nickkuk avatar nickkuk commented on May 27, 2024

Ubuntu Linux / VSCode 1.33 - the same.

from shader-toy.

Malacath-92 avatar Malacath-92 commented on May 27, 2024

This is a bummer. Presumably the last version, which did some major refactoring introduced a bug. I will invest some time looking at some Linux I have available to see what's happening. Unfortunately I don't have any access to a Mac so that's a bit difficult for me to fix, we can only hope that the issues on Linux are the same as the Mac ones 😅
Otherwise, @stevensona do you have the possibility to look into this on Mac OS?

from shader-toy.

Malacath-92 avatar Malacath-92 commented on May 27, 2024

I think the issue is only a path issue that we didn't handle correctly. If you have a chance to test #46 it would be greatly appreciated. I tested on Ubuntu 18.10, though didn't have WebGL available. But it seemed the core issue, which was that the WebView wasn't able to load resources, is fixed at least on Linux systems, presumably also on MacOS.

from shader-toy.

Malacath-92 avatar Malacath-92 commented on May 27, 2024

@ianacaburian This change is now live, let us know if it is fixed now or not.

from shader-toy.

ianacaburian avatar ianacaburian commented on May 27, 2024

Hey guys, I tested the new version 0.82 and still had the same problem. So I thought I'll try updating VS Code. It was already up to date but it gave me a message "Unable to perform update on read-only volume." My app was still located in a folder other than Applications. After moving VS Code to Applications, the extension works fine now. So a bit inconclusive as to whether the new commits fixed anything but there you go.

from shader-toy.

Malacath-92 avatar Malacath-92 commented on May 27, 2024

Interesting 😄
Can some one else see if the issue is fixed with the newest version?
@uniformfake @edap @nickkuk

from shader-toy.

nickkuk avatar nickkuk commented on May 27, 2024

@Malacath-92, thanks! Shader works now, but textures don't load, and there is no warnings.
I tried both

#iChannel0 file://./texture.png

and .vscode/settings.json with

{
  "shader-toy.textures": {
    "0": "file://./texture.png",
  }
}

from shader-toy.

Malacath-92 avatar Malacath-92 commented on May 27, 2024

It looks like I have some commits that didn't make it into the PR and should fix this. I'll make a new PR as soon as I get home.

from shader-toy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.