Comments (12)
@Malacath-92, textures work in 0.8.3 now. Thanks!
from shader-toy.
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.
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.
I have the same symptoms.
I am on Mac0S Mojave 10.14.4 / VSCode 1.33
from shader-toy.
Ubuntu Linux / VSCode 1.33 - the same.
from shader-toy.
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.
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.
@ianacaburian This change is now live, let us know if it is fixed now or not.
from shader-toy.
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.
Interesting 😄
Can some one else see if the issue is fixed with the newest version?
@uniformfake @edap @nickkuk
from shader-toy.
@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.
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)
- iMouse.w behavior is different from Shadertoy
- Make available as web extension HOT 2
- Compilation Error with includes HOT 2
- Feature request: setting to start the shader paused HOT 5
- Feature request: leave the preview alone if compilation fails HOT 2
- Feature request: GLSL ES 3.0 Support HOT 1
- bug report on self-input-buffer and solution to it HOT 1
- Feature request: import from shadertoy url and from shadertoy export json HOT 2
- Frametime panel blocks the Controls panel
- Feature request: export as video HOT 7
- Feature request: breakpoint debug shaders HOT 1
- Feature request: reload texture when the image changes
- Recording w/ the framerate graph enabled errantly records the framerate graph and not the shader HOT 1
- Feature request: Export Frames as PNG for High-Resolution Video Creation HOT 1
- Add .reloadOnSave HOT 1
- can't run glslify example HOT 5
- Cant preview any shader HOT 1
- Compilation error when using #define HOT 1
- Weird Artifact on Custom Screenshot Resolutions
- The menu is displayed even for files other than .glsl.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shader-toy.