Closed bkoropoff closed 1 year ago
Is there a version that does let you query the size that would be easier to use?
GLSL 1.30 has textureSize
, but it requires OpenGL 3.0
What kind of benefits would be get from requiring 3.0?
3.0 is generally more modern and complete, like support for integers throughout the entire stack (e.g. use non-normalized integers for indexed textures, use non-normalized integer coordinates to do colormap lookups), an overhaul of how shader inputs/outputs are specified to be more flexible and explicit, etc. It has vertex array objects, which might speed up rendering.
If you think it's worth migrating at some point, feel free to mess around with it
Since GLSL 1.10 doesn't let you query the size of a texture, we have to pass texture dimensions manually. Make doing this generic and automatic, and use it for the fuzz shader.