patriciogonzalezvivo/glslViewer

Spaces cauing issues without syntax errors

grinchdubs opened this issue · 0 comments

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.