mrdoob / glsl-sandbox

Shader editor and gallery.
https://glslsandbox.com/
MIT License
1.54k stars 260 forks source link

uniform vec2 resolution #53

Closed FarawayRay closed 5 years ago

FarawayRay commented 5 years ago

If I run on win OpenGL, how do I need to do it? What is the function of resolution?

emackey commented 5 years ago

resolution.xy is the width and height of the WebGL viewport, in canvas pixels. This may not match the actual number of device pixels due to the use of the resolution selector at the top of the page.