patriciogonzalezvivo / glslViewer

Console-based GLSL Sandbox for 2D/3D shaders
BSD 3-Clause "New" or "Revised" License
4.57k stars 352 forks source link

Spaces cauing issues without syntax errors #340

Open grinchdubs opened 1 year ago

grinchdubs commented 1 year ago

Recently I realized that I was having an issue with GLSL viewer when trying to follow the pixelspirit deck. I wrote a line on the 2nd card as such: vec2 st = gl_FragCoord.xy / u_resolution ;

This line would not compile correctly because I had spaces on this line. When I removed the space as below: vec2 st = gl_FragCoord.xy/u_resolution;

The line compiled fine and I able to move on. I wanted to add in the spaces so I can have a bit of space between my code so it isnt so cluttered but I see that is causing a problem.