Sign in to follow this  
Stranger

Shading languages...

Recommended Posts

Generally things like the graphics API used and the target hardware will have much more effect on your decision of shading language than the programming language, as long as support exists for that combination. For example with C# you would probably use DirectX, which suggests HLSL. If you were making a program with both DirectX and OpenGL support you would probably choose Cg.

I would definitely not pick the programming language based solely on shader language support, this should be only one of many many factors. Managing shaders just isn't that much code compared to all the other bits a typical application needs. It's just one part of the graphics system, and you've got lots of other bits aside from graphics to consider.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this