Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there major differences between shader languages?

I am currently learning GLSL. It would seem that once you learn one of the shader languages, learning one of the others would not be too difficult. Is it something analogous to learning a widget toolset like wxWidgets and then switching to Qt? Once you get the idea of what is happening within one widget toolset, another toolset will do something similar since they are ultimately doing almost the same thing at some point? What are your experiences with going from one shader language to another?

like image 448
zooropa Avatar asked Feb 04 '26 18:02

zooropa


1 Answers

Cg and HLSL are almost the same (same builtin function names). GLSL looks and feels a bit different (i.e. mix instead of lerp, use of a main-like function), but the overall transition is still easy. The only differences are in the details and in the respective APIs (i.e. stuff like matrix storage order).

Switching between shading languages is way easier than switching between GUI toolkits…

like image 95
Alexander Gessler Avatar answered Feb 09 '26 07:02

Alexander Gessler



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!