Yeah, that's a really good point. Which makes sense why you were asking people who know GLSL well. Unfortunately I don't really know it all that well, I just have a side project that I work on every now and then in OpenGL, so I don't know if there's a built-in. I scanned a couple sites claiming to list all the GLSL built-ins, but I didn't see any that do what you want, which is why I made the suggestion that I did.
Also, sorry that I presumed you were as much of a GLSL noob as I am. I've gotten into a bit of a habit of that recently due to group projects where members treat me like google when things aren't working right...
Also, sorry that I presumed you were as much of a GLSL noob as I am. I've gotten into a bit of a habit of that recently due to group projects where members treat me like google when things aren't working right...
