   HLSL - Cg - GLSL
  Hey guys,Next semester i am doing a custom unit on procedural content generation and i am basing mostly off of the GPU. I already know some GLSL, but no HLSL or Cg, with the most recent versions is there anything i can't do in GLSL that can be done in HLSL that i may find a need to use?   
  BTW this isn't supposed to be a flame war either   ;  GLSL only works on OpenGL.HLSL only works on DirectX (and 360).CG works on GL/DX/360/PS3.HLSL and CG are the same language - it was co-developed by Microsoft and NVidia, and the two names reflect the trade-marks given to it by each of those companies.Functionally, they're all pretty much the same. The only reason you'd choose one over another would be for portability to different graphics APIs.If you're already learning GLSL I'd just stick with it. Once you're familiar with these GPU languages it's pretty easy to transition between them.   ;  The only thing to be aware of with GLSL is that you can't pre-compile it (or at least that always used to be the case, I don't really keep up on the announcements for new GL versions). This is probably only a concern if you have a whole lot of shaders to compile, since it can take a very very long time to that at runtime.   