Why use Uber Shaders? Why not one giant shader with some ifs.

Started by
20 comments, last by Hodgman 11 years, 11 months ago
When Cg and HLSL were first created they were pretty much identical. Since D3D10 however they have diverged quite a bit.
Advertisement
So Cg is similar to HLSL?
HLSL and Cg are almost exactly the same language -- both Microsoft and nVidia cooperated to create a "high level shading language" together. When they were done, MS published their version under the name "DirectX HLSL" and nVidia published theirs under the name "nVidia Cg", but they were both almost the same language (with different supporting tools/APIs/extensions).

This topic is closed to new replies.

Advertisement