Converting shaders?

Started by
1 comment, last by Alex Baker 17 years, 12 months ago
Hi, I am wondering how much work it would be to convert GLSL shaders to DX shaders and vice versa I don t want to limit myself to a certain API however CG isn t an option since it s said to be pretty unoptimized for ATI hardware
http://www.8ung.at/basiror/theironcross.html
Advertisement
The languages HLSL and GLSL are very very similar. The code structure can generally stay the same, you simply have to handle the different quirks of each language. If you have a good reference book handy (or MSDN) then the conversion should take very little time.

If you do it enough and learn both languages the conversion should only take as long as it takes you to type. :)
Morpheus011,

i'm not exactly sure but what about nVidia FXcomposer - doesn't it support the export of shaders to both target language ?
Alex BakerComputer science is dealing with computers as much as astronomy is dealing with telescopes.

This topic is closed to new replies.

Advertisement