   Cg or HLSL?
  In the opnion of you which is better? Cg or HLSL?What should I study?I looked for the differences between them on google, but found nothing that answered my doubtsthanks   
  HLSL is used only for Direct3D, and hence is specific to DirectX.  Cg is cross platform and can be used on Direct3D or OpenGL, which gives you more options.However, I'm not sure how up to date Cg is or what advanced features it has.  The DXSDK is updated normally every 4 months or so, making it an attractive target for development.  If you are using Direct3D you should probably stick with HLSL, if you are using OpenGL, you either need to use GLSL or Cg.   ;Quote:Original post by Jason ZThe DXSDK is updated normally every 4 months or so, making it an attractive target for development.  If you are using Direct3D you should probably stick with HLSLamazing :DThanksand what better book to learn HLSL?