Converting shaders?
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
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. :)
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 ?
i'm not exactly sure but what about nVidia FXcomposer - doesn't it support the export of shaders to both target language ?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement