What do you use to write and test Cg shaders?

Hi guys,
I will apologise in advance for being a complete noob, but I can’t seem to find any help on this.

I’m very new to shaders, so I’m trying to go through the Cg Tutorial from NVIDIA and want to write and test the cg code examples, but I can’t find an IDE for cg. I’m on a Mac and would ideally like something that I can write the code in and view a result. What do you guys use for cg shader writing and how do you test your shaders?

Any help would be greatly appreciated!
Thanks

On a Mac and with respect to supported shader languages it might make more sense if you download the specifications for the OpenGL core and GLSL from here: http://www.opengl.org/registry/
and learn GLSL from modern examples likes these: https://github.com/g-truc

For a shader development IDE when not using Visual Studio and Nsight, you might want to look at this: https://github.com/pkulchenko/ZeroBraneStudio

Hi Detlef,

Thanks for you answer. The issue I am faced with is that I will be programming shaders in Unity3D as an end goal, and while Unity3D does support GLSL, it is not multiplatform like CG is.

So I really need to learn CG, and I need to be able to be able to program and test it on a mac.

I find it a little strange that even though CG isn’t platform specific like GLSL or HLSL, it’s very hard to use it with any program! lol

Thanks :)